Inspiring
Jul 9, 2021 6:37 AM UTC
Answered
copying a result from an optionfield to another
- 12 replies
- 2688 views
- Translate
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
