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.

Textfield presence not functioning

Avatar

Level 1

I have a form with a textfield whose visibility I want to control with a checkbox. My code for some reason would not work.


This is my code


if ( CheckBox1.rawValue == true )
rpl_nodename.presence = "visible";

else

rpl_nodename.presence = "hidden";

I know the logic works because I can put text in the textfield ( rpl_nodename.rawValue="this is a test"), but I cannot seem to get it change from hidden to visible

Please help.

2 Replies

Avatar

Former Community Member

If the default Designer form type is not 'dynamic XML form' or the form is not saved as a dynamic XML form, the presence property will not be respected.

Steve

Avatar

Level 1

Thank you Steve. That did the trick.