77. Input field Validation using Granite UI in AEM.

Опубликовано: 18 Декабрь 2018
на канале: AEM and Devops Tutorial
11,480
61

77. Input field Validation using Granite UI in AEM: Now you know how to add custom js to your dialog. In this video we will write custom validation for input field using granite UI.

We can do it in aem using foundation-validation. Validation happens through a validator.

Previously, the jquery validator was used for valiadtion, but that is no longer the case as it has been deprecated but maintained for backward compatibility and new way for validation is foundation-validation approach.

To create a validator for form validation you need to register a new validator to the registry using foundation.validationvalidator name.

WHen you register a new validator you pass an object and object should contain a selector object and validate function object.

Copy the code from https://github.com/pankajchhatri/AEM and follow along for the validation.

share, support, like and subscribe
Subscribe : https://www.youtube.com/channel/UC5Lc...
LinkedIn :   / pankaj-ch.  .
Facebook :   / pankajchhatri  
Twitter :   / pankajchhatri  
Google plus : https://plus.google.com/u/0/+pankajch...

About : AEM/CQ5 tutorial is a youtube channel which helps you to learn AEM concepts theoretically as well as practically.


Смотрите видео 77. Input field Validation using Granite UI in AEM. онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь AEM and Devops Tutorial 18 Декабрь 2018, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 11,480 раз и оно понравилось 61 людям.