Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

How to prepopulate some value and lock it in a comb text field.


Level 9

Hello All,

How to prepopulate and lock the last four cells of a text field which is of comb property? (The text field has 8 cells)



1 Reply


Level 10


You can't partially lock a field. What you could try is to add script which sets the display pattern for the field, making the last four digits part of the display pattern. That way when the user enters into the field they can only edit the first four digits. However note that the .rawValue of the field would be the first four digits.