New answers tagged document-id
Depending on your settings, the newform.aspx page will either open in a dialog (iframe) or open in a new page. Here is how I address this issue in my SPELL library: I don't pass the ID in the URL, but instead I run a script on newform.aspx that follows these steps: When the new form opens, check the parent window if the parent exist (dialog), then the ID ...
You can get the ID from newFile, check out SP.File.listItemAllFields You'll need to include the property in your load: clientContext.load(newFile, 'ListItemAllFields'); Then you can access the ID with: newFile.get_listItemAllFields().get_id();
Top 50 recent answers are included