Set variable for a subform does not work?

Set variable for a subform does not work?

Hi Zoho,

I have a form with 3 subforms in it.
I need the subforms to take values from the main form.
When scripting with "set variable" under "on user input", setting the variable for one of the subforms' value (Subform.ValueToUpdate) , when trying to submit the form I get an error "unable to execute update record task".

Off course, when loading the form the subforms are all empty.

How can I fix this?

Thanks

Ravid