Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Validate a form in php

Started by Nicolas 2 years ago · 0 replies · 392 views
2 years ago

Hi,

I try to develop a plugin that contains an action in a form that is coded in the plugins (using onFormProcessed event hook).

During this action, I should set a field of the form required if another field is filled. I would like to know if it is possible to set the field as required but also to mark this field as 'in error' to inform the user that he has to fill it.

Thanks.

Suggested topics

Topic Participants Replies Views Activity
Plugins · by DrPen, 1 month ago
2 477 1 month ago
Plugins · by renedebaaij, 2 months ago
1 349 1 month ago
Plugins · by Thomas, 1 month ago
1 374 1 month ago
Plugins · by complanar, 2 months ago
6 698 2 months ago
Plugins · by BenLaKnet, 2 months ago
1 641 2 months ago