Hi,
working with Support on an issue with a JSON-form in IDM 4.9, I received the hint not to use hidden text-fields to hide values, which are needed for the logic of the form, but to use the new hidden component for this purpose.
Trying to use it, I run into the problem, my JS code is terminating, whenever I try to assign a value to a hidden component. So far I did not find a way to do this in the JS code, which is used to initialize all other fields/components.
What is working to use the calculated data property of a hidden component and set it to "value = someVariable", with the variable set by the JS code of the form.
Having such a variable defined, I am wondering, why it might make sense to assign the value to a hidden component or text-field. I guess this is only needed in case the value has to be send to the flowdata of the workflow later. OR is there any other reason?
But anyway. it would be nich to know jhow to set a value of a hedden componet in IDM 4.9.x.
The following code is working for a text-field, but not the (new) hidden component:
instance.root.getComponent('hiddenAccountLockedOldValue').setFieldValue('true');
Kind regards
Thorsten