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


Level 1


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 :




Thank you in advance.

2 Replies


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"].