Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Plugins

Validate a form in php

Started by Nicolas 2 years ago · 0 replies · 46 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 Rene, 1 week ago
2 43 1 week ago
Plugins · by Xavier, 4 weeks ago
2 53 4 weeks ago
Plugins · by Luka Prinčič, 7 years ago
3 1179 1 month ago
Plugins · by Sebastian van de Meer, 1 month ago
1 47 1 month ago
Plugins · by PIERROT Alain, 2 months ago
3 72 2 months ago