PennController for IBEX › Forums › Support › Accessing variables and adding new text fields › Reply To: Accessing variables and adding new text fields
January 25, 2023 at 6:23 pm
#9860
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