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.

Sweden calling, help with validation pattern

Avatar

Former Community Member
Hello



I need validation pattorn.

I have a email feald that i need to have validation pattern on (i tryed this "A'@'A'.'AAA" but no no).



The outher feld is a numeric, it is a postalcode and its always looks the same "xxx xx".

How do i fix this



Best reg Mattias
2 Replies

Avatar

Former Community Member
Hi,

if you use Custom Tab from the library and Email address field from the set, it comes with the built-in validation. To check the patterns, see the XML code.



For the othe one, use 999 99 for display, edit and validation patterns

Avatar

Former Community Member
Thanks



And how do i make email field mandatory on exit.



For the postalcode i testded "use 999 99 for display, edit and validation patterns" but i can enter letters and go to the next field.

I would like to make costumers fill in only numbers like 99999 or 999 99 nothing else.



/M