Dynamic change of static text widget value.
I am working on a requirement where I need to change the static text value depends on other form field inputs. I wrote below script in value commit event of a text field to modify static text widget value.
mySampleText.value= "Updated Text";
or
guideBridge.resolveNode("mySampleText").value = "Updated Text";
both scripts or working when both text box and static text are present under the same panel. However the static text is not getting updated if it is present in different panel. I Have noticed that the static text field widget value is changing only on 2nd value commit event of TextBox ( Both widgets are in different panels ) ! This behavior is not consistent.
My scenario is to display multiple panel fields data as formatted paragraph text in last panel (i.e Signature) as attestation information. Please suggest an approach to update the static text field value to address requirement.