read only feature in AEM forms | Programatically

vkeerthy 15-10-2015

Hi Team,

Could you please advise how to set a form field as ready only on initialisation. Yes, definitely providing "false" in access expression helps the situation but I would like to know how I can achieve this through my custom javascript init.

Example: I have a field called applicantName which is my form element ID and I want this to be ready only on form initialisation (Under initialisation script in guideRootPanel).


For some reason, I couldn't find enough information on this in JS API document. Thanks!

Mark Solution

Are these answers useful?
Help other community members by marking useful answers as accepted.

Accepted Solutions (0)

Answers (2)

Answers (2)


Hi Varun,

You could use enabled property of the field component[0] and set it to false in initialize expression. Though, there is no such property at panel level at the moment and you need to set the enabled to false for each field of that panel.