Get selected item ID to disaply in customnized DispForm javascript
SharePoint
1
Posts
1
Posters
1
Views
1
Watching
-
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 andand get_fieldValues to read it back
$('#Title').val(item.get_fieldValues().Title);