Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. SharePoint
  4. Get selected item ID to disaply in customnized DispForm javascript

Get selected item ID to disaply in customnized DispForm javascript

Scheduled Pinned Locked Moved SharePoint
questionjavascriptsharepointtutorial
1 Posts 1 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    linkan94
    wrote on last edited by
    #1

    I'm using SharePoint online and have a SharePoint-hosted app.

    I have a page with a question form that send data in to Sharepoint. I show my question form in my DispForm for my list (i added my app as an app part) on DispForm. When i select a item and press on view item i see my question form just as i like it but i don't know how to get the rigth ID of that item i want to show. Someone have any suggestion? i use

    listItem.set_item('Title', $('#Title').val());
    to send data in to my sahrepoint list and

    and get_fieldValues to read it back

    $('#Title').val(item.get_fieldValues().Title);

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups