[Solved] Conditionally using previous responses to set up default values

0

Hi,

I’ve got a Professional account, and am setting up a survey that will be emailed out through surveygizmo.

I have a conditionally displayed page (Page A) that includes contact details that I can prepopulate with the email invite merge codes. Obviously these can then be modified by the user.

I then have another conditional page (Page B) that has some fields common to A, which I would like to prepopulate. What I am trying to achieve is this: if Page A was displayed, to prepopulate Page B with the fields from Page A. If Page A was not displayed, I want to prepopulate with the fields from the email invite merge codes.

Things I’ve looked into that don’t seem to get me anywhere:

There doesn’t seem to be a way of including logic in the merge codes, so I can test the response that triggers Page A being displayed when setting up the default values for Page B

I’ve also looked at hidden variables. I’ve set these up for the common fields on the first page, using the email invite variables. But when trying to update them through an Action in Page A, I only seem to have access to the fields in pages prior to A, so I can’t do this. And if I try and set it up using an Action on a later page (between A and B) there doesn’t appear to be any conditional logic, so I update the hidden variables if the response to the trigger question for page A means that the page was displayed.

I’m sure there’s an easy way to achieve this, but I’m new to surveygizmo and don’t know what the answer is?

Any help much appreciated!

timthornton90 asked

    Best answer

    0

    I don’t believe that there is an easy way to achieve this. I think that you are going to have to develop a custom JavaScript to get this done.  You can use various SurveyGizmo functions (sgapiEvaluateMergeCodes,sgapiSetValue) and the ‘if/then’ functions in JavaScript to get the job done.

    There are several examples of custom scripts available at https://script.surveygizmo.com/help/article/link/working-examples.  You might be able to piece something together from the examples.

    Jim Wetherill answered
      ×

      Login

      Question stats

      • Active
      • Views388 times
      • Answers1 answer
      • Followers0 followers