Possible to 'share' or 'transfer' values from different scripts when using batch element?


Possible to 'share' or 'transfer' values from different scripts when...
Author
Message
hsl
hsl
Associate Member (236 reputation)Associate Member (236 reputation)Associate Member (236 reputation)Associate Member (236 reputation)Associate Member (236 reputation)Associate Member (236 reputation)Associate Member (236 reputation)Associate Member (236 reputation)Associate Member (236 reputation)
Group: Forum Members
Posts: 1, Visits: 8
Hi,

I'm trying to use the batch element to run multiple scripts (see example below) and have a problem. Let's say I've the same variable values.age in both scripts EXP1.iqx and EXP2.iqx. When EXP1.iqx runs, the participant enters their age, which is then stored in values.age. Then when EXP2.iqx runs later, is it possible to 'share' or 'transfer' assigned value stored in values.age from EXP1.iqx to EXP2.iqx, without requiring the participant to re-enter their age again? Hope this makes sense! If that cannot be done, is there any alternative solution?

<batch>
/file = "EXP1.iqx"
/file = "EXP2.iqx"
</batch>

I really appreciate any help anyone can provide. Thanks!

Best,
Hause



Tags
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
No, I'm afraid that isn't possible -- there is no way to transfer information from one script to another using <batch>. You would have to have the participant enter her/his age twice (once in each script). Alternatively, you would have to merge the two scripts into a single one which would obliterate the need to transfer information between them.

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search