Expand my Community achievements bar.

Dynamic subforms not working when rendered with data.

Avatar

Former Community Member
I'm having a problem with the dynamic aspects of a form I'm working on. If a subform by default is hidden, how do I get the subform to become visible when it is rendered with data?



My Problem:

I have a form that is part of a workflow. There is quite a bit of dynamic content. When user A fills the form with data and submits it to user B, the form is loaded by form manager and the data is there, but all the subforms that are hidden by default remain hidden. I need them to display.



Any suggestions? Thanks in advance.
1 Reply

Avatar

Former Community Member
You could use script when the form is loading, either check the rawValue of the fields or check in the data DOM to see if the data is there, and if so then change the presence to visible.



To check the data DOM would be an expression along these lines:



xfa.datasets.data.formName.subFormName.fieldName.value;



H.