Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Dynamic subforms not working when rendered with data.

Avatar

Not applicable
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

Not applicable
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.