Expand my Community achievements bar.

issue with show hide rules within dropdown form component

Avatar

Level 4

Hi,

I am facing an issue with show hide rules in AEM 6.2. On Geometrixx Media site, I've tried configuring two drop downs within the start & end form components -  /libs/foundation/components/form/dropdown. The idea is to make the second dropdown visible based on the value selected in the first dropdown.

I am able to configure this functionality only the first time. However on subsequent page reloads, I could see that show hide condition in the dialog vanishes & doesn't allow me to configure it anymore. 

Any thoughts on this?

Also documentation says the JS expression will be something like <<((contact == "Yes"))>> which I have noticed to be changed in 6.2 to something like <<((contact.equals("Yes")))>>.

6 Replies

Avatar

Level 10

See this AEM Community article - 

https://helpx.adobe.com/experience-manager/using/dynamic_touchui.html

This discusses how to properly setup show/hide configurations. 

Avatar

Level 4
Thanks Scott, However I am referring to the classic UI and not granite UI.

Avatar

Administrator

[Not tested]

Hi

Please have a look at this article:- 

Link:- http://cq5experiences.blogspot.in/2014/03/hide-and-show-required-selection-field.html

// hide and show required selection field in the dialog 

~kautuk



Kautuk Sahni

Avatar

Level 4

kautuksahni wrote...

[Not tested]

Hi

Please have a look at this article:- 

Link:- http://cq5experiences.blogspot.in/2014/03/hide-and-show-required-selection-field.html

// hide and show required selection field in the dialog 

~kautuk

 

Sorry both the articles provided by you & Scott are for showing or hiding fields within a dialog either granite/classic. The issue I have raised is not related to dialog; instead it is related to showing & hiding of form components on the html page based on the value of another component.

Avatar

Level 1

Hi,

Were you able to solve it?

I'm facing the same issue.

My form works in geometrixx demo website (/content/geometrixx) but not other website, such as geometrixx-outdoor or my website.

I have a checkbox group and an address form.

I want to show address form when user selects a specific checkbox.

Conditional rule works just at the very beginning of the setup. Then the dropdown is always empty as displayed in the picture in the previous post.

Thanks,

Beatrice