Reply To: Accessing variables and adding new text fields

PennController for IBEX Forums Support Accessing variables and adding new text fields Reply To: Accessing variables and adding new text fields

#9860
Jeremy
Keymaster

Hi,

1) You can not use getVar inside a newX command. Instead, you need to use it inside the Text element’s text command, like this: newText("sentence", "").text( getVar("segmentation") )

2) The easiest solution would be to create as many TextInput elements that you will allow the user to add, and dynamically add/remove them to/from the page. Here is an example with the possibility of adding up to 5 extra input boxes: https://farm.pcibex.net/r/kZmhKa/

Jeremy