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

Set fields entered to become read-only upon submit

Avatar

Former Community Member
hi, i'm currently using adobe lifecycle 7.0 to create my interactive form



i need to create an interactive form which allows user to enter the information shown and upon submit, all fields cannot be edited; in another words, i want to make the fields entered by the user to be read only when the submit button is clicked. Is there a way to do this?



anyone knows how to do this? some help would be great. thanks
4 Replies

Avatar

Level 5
Here is an idea:

Set a hidden field and change value from 0 to 1 upon submit. Then at each field that you want make Non editable in the "initialize" event check for the valu of hidden field and set "access" property.



Good Luck,

SekharN

Avatar

Former Community Member
hi sekharn, thanks.However, i'm really new to javascripting. so, is there any sample codes? that will be great^^

Avatar

Level 5
Email me copy of you form at "meetsekharv at yahoo.com" and let me know two of the filds that you want to lockdown at submit I will get the code working for you.