Forums

Forums / Developing Portals / Pass values between forms or pages

Pass values between forms or pages

Thread is closed for posting
6 posts, 1 answered
  1. smehdi
    smehdi avatar
    40 posts
    Registered:
    23 Mar 2015
    20 May 2015
    Link to this post
    Hi.

    Is there a way to pass values between multi-step pages and/or forms through querystring or session variables?

    Regards,
  2. Clinton Bale
    Clinton Bale avatar
    126 posts
    Registered:
    21 Feb 2014
    21 May 2015 in reply to smehdi
    Link to this post
    Hello smehdi,

    You can pass Session variables through forms using custom C# code only. For example, creating a widget that sets a session variable on page load of Step 1 it would be visible in Step 2.

    With the Portal Connector v2.4 the only way to pass querystring values between forms is to override our submit button functionality. In The Portal Connector v3.0 we have added support for all values that are in the query string already to be pushed to the next form.

    If you just want to get data to the next form, remember that the record is saved with each step progression, so you can bring up the data from the record itself on the next step.

    Regards,
    Clinton
  3. smehdi
    smehdi avatar
    40 posts
    Registered:
    23 Mar 2015
    21 May 2015 in reply to Clinton Bale
    Link to this post
    Thanks Clinton for your response. We're using 3.0. Can you please give an example of how to use the query string in a multi step form?
    We won't be saving information until the wizard finishes so cannot use the other approach you suggested.
  4. Clinton Bale
    Clinton Bale avatar
    126 posts
    Registered:
    21 Feb 2014
    Answered
    22 May 2015 in reply to smehdi
    Link to this post
    Hi smehdi,

    We will be rolling out an update to 3.0 next week that includes this change.

    The change is already documented here under the Advanced Property section labelled: Redirect With All Query String Parameters

    Regards,
    Clinton
  5. smehdi
    smehdi avatar
    40 posts
    Registered:
    23 Mar 2015
    22 May 2015 in reply to Clinton Bale
    Link to this post
    ​Here's what we're experiencing currently. ​We ​set the querystring attribute of a lookup field to 'true'. In preview mode, as soon as a value is selected for that field, the form posts back (and contain the querystring parameter). ​However, we want this to happen when user clicks the 'Next' button i.e. we wan to access the querystring parameter on the next form or page.

    Not sure if the next update will resolve this issue or if we're doing something wrong here.
  6. Clinton Bale
    Clinton Bale avatar
    126 posts
    Registered:
    21 Feb 2014
    22 May 2015 in reply to smehdi
    Link to this post
    Hello smehdi,

    Yes. This is exactly what the new update of TPC will do. This new advanced property will pass all values of the querystring on form A to the next form. There is no easy way to do this without this update.
    Last modified on 22 May 2015 19:05 by Clinton Bale
6 posts, 1 answered