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

Signed form doesn't disable function

Avatar

Level 7

I have a date field which gets the current date. However, when the form is signed and the fields are locked, it doesn't disable that event from running and invalidates the signature.

How can I prevent function/event from running when the form is signed?

Aditya

3 Replies

Avatar

Former Community Member

You can check the field to see if there is a value in it and only run the calc if it is

empty.

Paul

Avatar

Level 7

There are multiple fields with different events... Does that I have to do the check for all? This would be too manual.

Aditya

Avatar

Former Community Member

You need some way of indicating that you want to stop setting the date each time the form is opened. If you check the contents of the date field and it has a value then you can stop the calculation ....no?

Paul