Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

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