Using Readonly disabled html5 attributes with AEM Forms | Community
Skip to main content
New Participant
June 7, 2016
Solved

Using Readonly disabled html5 attributes with AEM Forms

  • June 7, 2016
  • 1 reply
  • 1367 views

Hi ,

 I'm trying to use html5 attributes readonly , disabled on a extended guidetext field component on AEM forms 6.1. In Edit mode attributes are set correctly but in preview mode these attributes are automatically being removed from the mark-up . 

Any filters that i need to manage to respect these attributes ? 

In show/hide rule editor we can set a field to disabled but as per our uX requirements we have different use cases to make a field readonly and disabled .

 

Any Pointers ?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by saswatad1092830

You can create a initialize script which sets the "access" to readOnly or other way have a "enabled" expression which is false on some condition.

1 reply

saswatad1092830
saswatad1092830Accepted solution
New Participant
December 9, 2016

You can create a initialize script which sets the "access" to readOnly or other way have a "enabled" expression which is false on some condition.