Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session
SOLVED

Validation on page properties dialog

Avatar

Level 5

I have added a multifield component on page properties. I want to have a validation on the values entered in it by authors. 

It is a textarea.

goyalkritika_1-1699331630582.png

 

Validations: Author should be able to enter only numeric values and ',' in special characters. Also, there should be a maximum length of characters allowed in this textarea. Otherwise, it should throw a message in red color.

How can I write this custom validator? 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
1 Reply

Avatar

Correct answer by
Community Advisor