Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Capture the exit event of form fields

Avatar

Level 2

Hi, Is there a way to capture the exit event of form fields when the form is open? I have say 10 fields in my form and I have to check rawValues of 5 fields if its null and disable a button. Instead of having to write the code on 'exit' event of every field, i just want to write one line capturing the rawValue of all these fields and perform my code. Something like the below.

When the form is open/ready  or when im working on it

if(xfa.event.change)     //checkrawValueOnExit

{

     if(Textfield.rawValue == null)

     {

     Button.access = "protected";

     }

}

Somehow the above is not working! Also suggest in which event do i have to write the code.

Please suggest ways of doing this.

Thanks

Radhika

0 Replies