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

Checkbox validation script

Avatar

Former Community Member
I am not sure how to do this. I am trying to run a validation script, that will check to see if a checkbox is selected within a subform and then display a message to the user if it's true, but I keep running into errors. Could someone please advise me on how to do this?

Thanks a lot,

Angela
1 Reply

Avatar

Former Community Member
Place this script into the click event of your checkbox and select JavaScript as the language:



if (this.rawValue == 1){

app.alert("yourmessagehere");

}



Regards,

Dave