Populate a single text box with multiple variable values
January 27, 2010 12:00 AM
Yes, I've got the 'add to' action as a fall back-
My variable values will all be text. I could use the add to action to add each variable value, then a space, to a new user-defined variable, and then display that string in a text box via change contents. I've got 2 hesitations with this approach:
a) I'd ideally like the list of variable values to be vertical (like a list), not horizontal (like a sentence). Is there a way to add a carriage return instead of a space?
b) It's somewhat klunky... first of all, I've got 2 near-identical forms with 21 objects in each, making 42 variables, and the user can provide their answer in either form. If the user provides their answer in Form A, the target text box should populate with variables 1-21. If the user provides their answer in Form B, the target text box should populate with variables 22-41. So the first action has to determine which form the user used to provide their answer. Then I've got to have 2 groups of 42 actions each: 21 actions to populate the variable values they selected plus an additional 21 actions to populate the spaces or carriage returns. That's a total of 85 actions on one page, before I have actions that drive the dynamic feedback text I'm also hoping to build in (ie. If drop-list-0017 = molly, show text=really, really wrong). I'm hoping there's a more elegant (and less time consuming!) way of executing it.
mrszev said:
I'm wondering if there is a way to use the 'change content' action (or another) to populate a single text box with multiple variable values to create a string of text... I've got a form made of up of 17 some odd drop downs, 2 radio buttons in a group and 2 entry fields, and if they haven't made the correct selections I want it to show a feedback page of the selections they made next to the proper selections side by side. Sort of like:
Selection Name --- Your Selection --- Correct Selection
I'm hoping there's a way to do this for each form element in one fail swoop, without having 20-some change contents actions & text boxes...
Discussions have been disabled for this post