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.

Hidden Subform

Avatar

Level 2
I know there is a way of doing it. And I know that it has been referenced before. Can someone help me out? I am creating a simple form that includes an option of, it someone chooses yes, two other questions would be displayed. I can not figure out how to do it, can anyone please help?
7 Replies

Avatar

Former Community Member
send me your form

girish

mergeandfuse@gmail.com

Avatar

Former Community Member
All you need to do was use the following

mySubform.presence = "visible" in the click event of the checkbox

Avatar

Former Community Member
Does the form need to be dynamic to do this?

Avatar

Former Community Member
For some reason my form does wierd things when I ever use the hidden presence. Is it merely to remove the objects for design mode and you should make it invisible for testing?

Avatar

Former Community Member
Hidden excludes the objects from layout. It is useful for subform definitions that are not to be part of the form until you wantthem (only in flowed situations). This allows you to define ahead of time then enable when needed.