How to customize the positioning of foundation.validation.validator error message? | Community
Skip to main content
Level 2
November 18, 2024

How to customize the positioning of foundation.validation.validator error message?

  • November 18, 2024
  • 4 replies
  • 1010 views

I have created a validator for number of slides in carousel , however the error message is not visible in dialog. 

As for the code i am using selector on coral-multifield and returning error message if multifield items lesser than prescribed minimum.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

4 replies

Tethich
Community Advisor
Community Advisor
November 18, 2024

Hi @zendark 

 

To get better help, can you share your dialog xml (anonymized of course, if contains any confidential info) ? Maybe you need to add the multifield in a container first. Also worth posting how does your.js validator looks like.

PRATHYUSHA_VP
Community Advisor
Community Advisor
November 18, 2024

Hi @zendark 

 

Seems the error message is not visible in the view port. Try checking in the dialog maximized view.

 

Try to override the dialog width and check if it solves

 

Hope this helps !

Thanks

PRATHYUSHA_VP
Community Advisor
Community Advisor
November 18, 2024
Tethich
Community Advisor
Community Advisor
November 18, 2024

@zendarkAlso check if your validator is working properly. A well example of such validator is https://aemhints.com/2020/10/24/limit-multifield-aem65/

ZendarkAuthor
Level 2
November 20, 2024

I have used the same code logic as the given code , validator is working fine it is just an issue with the error message being hidden

kautuk_sahni
Community Manager
Community Manager
November 26, 2024

@zendark Did you find the suggestions helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!

Kautuk Sahni