0

I was wondering if it is possible to have BOTH an html and url included in the options you pass to SP.UI.Dialog for the Attach File dialog. I can embed the link into a div but it shows the entire page unlike in the modal where it only shows the pertinent info...

I was hoping I could open up the SP version of the Attach File modal and then add in custom HTML to it versus creating my own modal and trying to embed the attach file page. Is this possible? If not, could I add it via jQuery possibly?

1

You can load the Dialog without the entire page using below URL

https://siteurl/_layouts/15/AttachFile.aspx?IsDlg=1
  • thank you!!! It works...now I feel stupid...all I had to do is add the $IsDlg=1 to then end of the url query with the list ID and item # – MattE Oct 27 '17 at 19:05
  • It shows properly but it doesn't work right...when I add a file and hit OK I get the following error: "Unable to set property 'value' of undefined or null reference when it attempts to set the ScrollPosition values – MattE Oct 27 '17 at 19:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.