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.
SOLVED

AEM OOTB form client side validations

Avatar

Level 7

Hi,

Is it possible to place OOTB form server side validations script in client side validation file? I have copied the code which is there in server side validations file into client side validation file. It is not working for me. Any idea? your comments are welcome. I have to do the same server side validations in client side.

Thanks,

AryA.

1 Accepted Solution

Avatar

Correct answer by
Level 9

If you are using AEM 6.0, there are some out of box client validations you can perform on the AEM adaptive forms fields. 

You might have to write client site validation scripts on dialog fields depending on your requirement.

You can do a combination of client side and server side validation, details documented in the following link

http://www.citytechinc.com/us/en/blog/2012/04/complex_cq5_dialog_validation.html

Or you can have just client side validations using javascript, some examples described in following link

http://sonycharan.blogspot.com/2014/03/client-side-dialog-validation-in-cq5.html

AEM commons package provides some kind of client side validations too, you can find more about at

http://adobe-consulting-services.github.io/acs-aem-commons/features/widgets.html

View solution in original post

1 Reply

Avatar

Correct answer by
Level 9

If you are using AEM 6.0, there are some out of box client validations you can perform on the AEM adaptive forms fields. 

You might have to write client site validation scripts on dialog fields depending on your requirement.

You can do a combination of client side and server side validation, details documented in the following link

http://www.citytechinc.com/us/en/blog/2012/04/complex_cq5_dialog_validation.html

Or you can have just client side validations using javascript, some examples described in following link

http://sonycharan.blogspot.com/2014/03/client-side-dialog-validation-in-cq5.html

AEM commons package provides some kind of client side validations too, you can find more about at

http://adobe-consulting-services.github.io/acs-aem-commons/features/widgets.html