Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Validate a form in php

Started by Nicolas 2 years ago · 0 replies · 284 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 renedebaaij, 19 hours ago
0 20 19 hours ago
Plugins · by complanar, 2 weeks ago
6 381 2 weeks ago
Plugins · by BenLaKnet, 2 weeks ago
1 198 2 weeks ago
Plugins · by complanar, 1 month ago
2 474 4 weeks ago
Plugins · by Vladimir Novak, 2 months ago
3 750 2 months ago