How do to save a value on component by html ID

hi, I have a collection items and into by one collection I have a input where the user put a value number. I need to save the value in the input by WF on change, but cannot find the component`s name on the WF… then I think if I put a html ID I would find the component and save the value but nothing… I am using this code to find the HTML ID:

return(document.getElementById('form1'));

but the return is null.

This is my collection fig_1

the id`s name: concatenate(“form”,context.item.index)

WF on the component by on change action:

regards!!

Why would you do this?

1 Like

thanks a lot @dorilama it works!

1 Like