SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Beginner. I have a list form that opens from page using SP.UI.ModalDialog. The form is to represent entries into a description list based on ID from parent list. The page has tabs that allow user to first make an entry to the parent list, then select the next tab which using jQuery/SPServices to grab the last ID from the parent list and load a bunch of information relative to the second tab page. From this page the user can click a link which calls the dialog and add multiple entries to the child its like a very basic one to many I have trying to retain.

I already have the parent's ID from the SPService portion of the script, and the value is shown on the page. What I can't figure out is how to pass that value into the Modal New Item Form. Everything works fine if I manually add the value (parentID) into each entry of the child's new item, but this defeats the purpose. I just trying to pass a number to the form...can this be done?

share|improve this question
up vote 0 down vote accepted

So in case anyone else is just getting started and runs into this as I did, here is how I was able to get this working.

Found solution here that worked for me.

Link above help me with getting the value from the qs, and setting the formfield with that value. Already had the ParentID and qs; used jquery for that.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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