Prefill only one row in array

More
4 months 1 week ago #169632 by hamiltonand
hamiltonand created the topic: Prefill only one row in array
Hello!

I'm trying to prefill de value of just one row of an array with the value of a previous array. I use version 2.05+ Build 140109.

The previous array have just one row. I want to use it to assign it to the last row (of 6) of a new array question. I have been reading some posts, but they do not fit exactly with my needs :(

Anyone could help me?

Thanks!!

Javier.

Please Log in or Create an account to join the conversation.

More
4 months 1 week ago - 4 months 1 week ago #169637 by tpartner
tpartner replied the topic: Prefill only one row in array
You can use the Expression Manager assignment operator - manual.limesurvey.org/Expression_Manager..._Assignment_Operator

Place a hidden (via CSS) equation question directly after the second array (in the same group).

Place something like this in that equation question:

{Q2_SQ006 = if(is_empty(Q2_SQ006), Q1_SQ001, Q2_SQ006)}

Sample survey attached:

File Attachment:

File Name: limesurvey...7384.lss
File Size:21 KB



Oh, and, you should definitely update your LimeSurvey version.

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Attachments:
Last Edit: 4 months 1 week ago by tpartner.

Please Log in or Create an account to join the conversation.

More
4 months 1 week ago #169644 by hamiltonand
hamiltonand replied the topic: Prefill only one row in array
Thank you Tony!!

That's exactly what I need!!

And sure, I will update to the latest version as soon as possible!! :)

Javier.

Please Log in or Create an account to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!