Inspiring
July 9, 2021
Answered
copying a result from an optionfield to another
- July 9, 2021
- 1 reply
- 2624 views
Hallo,
I am using the following code to transport the result of an optionfield cbox to another named dbox.
(received some help by the community, thank you)
this.getField("dBox."+(this.getField("dBox").value-1)).value
=this.getField("cBox."+(this.getField("cBox").value-1)).value;
This only works, when i once click into dbox. Then, when clicking into cbox, the result is transported into dbox. If i do not click once into dbox, the result is not transported.
I tested dbox.value = "on" in the script, but that did not help
I start the form with nothing clicked. See example attached
all the best
Ben
