Quantcast
Channel: WordPress.org Forums » [Forminator Forms – Contact Form, Payment Form & Custom Form Builder] Support
Viewing all articles
Browse latest Browse all 1405

Multi-Field requirement

$
0
0

Replies: 2

Hi there,

I have a bit of a strange request that I am hoping is possible, and that somebody can help me figure out.

I have fields for enrolling in lectures at different time blocks. I am using Select fields, so that we can limit the submissions to 30 per class. There are three time blocks, each represented by a different Select field (three total), and three classes offered at each time. Students should be able to select a maximum of two classes to enroll.

I am trying to figure out how to set a rule that will enforce this behavior. Right now, each field has 4 options: “Class 1”, “Class 2”, “Class 3”, and “No Class”, and the default selected value is “No Class” for each field. I want the fields to know about each other, and either to prevent the user from selecting a third option or to throw an error message like it does for required fields, something along the lines of “Please select a maximum of two classes to enroll in”.

If anyone has any advice to help solve this, would be much appreciated. Thanks!

  • This topic was modified 16 hours, 2 minutes ago by aitalo.

Viewing all articles
Browse latest Browse all 1405

Trending Articles