Support Forums : Add advanced script function to write data into hidden multi & matrix questions

We encourage an open exchange of information. Ask your questions or make suggestions. We are here to help, but we also encourage all of you to help one another.
Click on the Subscribe Flag to be notified by email of replies to your post.
Current User: Guest Login Register
Please consider registering

Add advanced script function to write data into hidden multi & matrix questions

Add a New Topic Reply to Post
UserPost

8:18
February 18, 2008


ed

Guest

It will be convenient to be able to write values into hidden multi and matrix questions. For example, if branch survey to version 1 and 2, and version 1 will get a set of values to show in later question, and version 2 will get another set of values to be in hidden questions. But these variables are common in some aspects so they can be grouped in a multi or matrix questions.

The current ’sgapiSetValue’ allow writing value into hidden single/essay questions only. This will require to include a set of single/essay questions as hidden and use script to define each one. With multi/matrix hidden available, all hidden data can be written into one hidden question.

If this can be done, it will also require to be able to ‘merge code’ with multi/matrix questions into question text.

11:42
February 19, 2008


Chad

Moderator

posts 689

Hi Ed,
This can be done already, although it’s rather difficult. You will have to “view source” on the survey to get the question skus of each row.

You would then write a script to loop through all those skus and insert values into them.

Depending on the use, I would find it easier to just concatenate all the values into one long delimited string and put that in a hidden value.

Hope this helps,
Chad

Add a New Topic Reply to Post


Reply to Topic: Add advanced script function to write data into hidden multi & matrix questions

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 5 + 1        (Required)

Topic Reply:


 
© Simple:Press Forum - Version 3.1.4 (Build 357)