Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Show fields based on process

Avatar

Former Community Member
i have some fields that need to be visible, only after the form has been approved.



is there a way i can pass something back to designer (from workbench), to trigger the fields to display?



Thanks
3 Replies

Avatar

Former Community Member
Have a hidden field on the form and put a value in that field when it is approved. On initialize of th eform check the value and if it is what you expected then make the fields visble.



Or you can have two uniqie templates.

Avatar

Former Community Member
the variable value that you are checking on, is it being passed back from the workbench?

Avatar

Former Community Member
It is being inserted into the data stream on the route where the user has selected the Approve route.