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.

Hiding field based on an object

Avatar

Level 1

Hi

I'm relatively new to Adobe Live Cycle Designer. I have been trying to hide a field based an object that exists in my XML but not visible in the form at all. I'm wondering how to do this.

Below is the example :

I will need to hide txtLine2, if ContentTypeCode = 2

Form :

1783741_pastedImage_0.png

XML :

1783872_pastedImage_2.png

Thank you in advance.

2 Replies

Avatar

Level 4

Wrap the text box in a subform and bind the subform to the ContentTypeCode. The SOM should look something like SecondPostalRegulationsCompliantAddressLine.[$.ContentTypeCode != "2"].