formio.js icon indicating copy to clipboard operation
formio.js copied to clipboard

Send value from Buton to Text Field

Open gjagomez opened this issue 7 years ago • 2 comments

hello could help me how can I send a value to a Text Field from a Button with the action Custom I'm doing it this way but it does not work

data.name = 'Value I need to send';

How could I do it?

Thank you

gjagomez avatar Apr 20 '19 06:04 gjagomez

you should do it in this way:

form.getComponent("name").setValue("value i need to send");

amirmf avatar Apr 21 '19 07:04 amirmf

Thank you very much for the help I worked.

gjagomez avatar Apr 22 '19 03:04 gjagomez