Passing information on a new form

rss

Posted by Katerina - May 12 ’14 at 10:43

Hi Dimitry,

Is the following possible with the related ites in SP Forms?

Manipulate the “Add” item links on the sub-grids / related data so that when we open a new form we can have information passed in the query string

 

Thanks

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 6 years 2 months 25 days
    #1 by Dmitry Kozlov May 13 ’14 at 03:44

    If you open a child new form in a dialog you can obtain a parent form fields via JavaScript. Example:

    window.top.fd.field('Title').value()
    

    You can find more detail in the following thread:

    http://forum.spform.com/forms-designer-for-sharepoint-20/cross-site-lookup-add-new-item-24143/

  • Katerina
    Member
    Member for: 5 years 7 months 16 days
    #2 by Katerina Jun 19 ’14 at 06:07

    Hi Dimitry,

     

    Thanks for your reply and appologies I didn't come back to you earlier. What do you mean by child form? I thaught that we could passed info in the same form as we do when we pass a query string from the usrl. Is that right?

     

    Thanks 

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 6 years 2 months 25 days
    #3 by Dmitry Kozlov Jun 19 ’14 at 11:59

    [#2]: Actually, not. SharePoint truncates all unrecognized parameters from the query string when opens the specific form. Thus you should use the code from my previous message to obtain values from the parent form.

  • Katerina
    Member
    Member for: 5 years 7 months 16 days
    #4 by Katerina Jun 19 ’14 at 12:06

    So do I need to have two new forms? One parent and one child?

     

     

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 6 years 2 months 25 days
    #5 by Dmitry Kozlov Jun 19 ’14 at 12:13

    [#4]: Not sure I understood you. Could you describe the case in more detail?

  • Katerina
    Member
    Member for: 5 years 7 months 16 days
    #6 by Katerina Jun 19 ’14 at 12:18

    Yes sure...

    The user will start by filling the first form. After they submit it and is approved they need to fill an other form from the same list and I need to pass 2 fields from the previous form ( from the list item is created before) to the new form. The forms are under the same list as content types. How do I pass those infromation in the new list?

    Hope this makes more sence.

     

    Thanks

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 6 years 2 months 25 days
    #7 by Dmitry Kozlov Jun 19 ’14 at 12:37

    [#6]: Ok, now I see, thanks. Here you should add JavaScript code into the new form which requests field values of the previously created item via JSOM. Our support team can help you with this task, it will take about 200-300 support minutes depending on the number of columns. If you're interested, please drop the detailed description of the task to [email protected]

  • Katerina
    Member
    Member for: 5 years 7 months 16 days
    #8 by Katerina Jun 20 ’14 at 09:10

    If you iplement that for us, will it be something that we will be able to use in other scenarios or it will be something specific for that scenario?

     

    Thanks

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 6 years 2 months 25 days
    #9 by Dmitry Kozlov Jun 23 ’14 at 04:37

    [#8]: It will be the script for the specific scenario but you will be able to adapt it to similar scenarios.

Displaying 1 to 9 of 9 messages