Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Validate a form in php

Started by Nicolas 2 years ago · 0 replies · 237 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 complanar, 2 weeks ago
2 249 4 days ago
Plugins · by Vladimir Novak, 1 month ago
3 594 1 month ago
Plugins · by Mathieu Lecouturier, 2 months ago
3 415 2 months ago
Plugins · by Slebeig, 2 months ago
1 529 2 months ago
Plugins · by Rene, 3 months ago
2 729 3 months ago