• Hi,

    I am building a two part form. The first part is a standard contact form, name, address etc.

    The second part is bit more complex. The user has 20 fields to choose from, and they must allocate 100 units across these 20 fields.

    They must allocate the units across at least 5 fields, and a maximum of 10. The minimum they can allocate is 5 units, and the maximum is 40, in increments of 5.

    So far, I have been able to set up the form so that there are 20 fields, and each has a dropdown menu allowing the user to allocate 0-40 units.

    However, I have not figured out how to ensure that the sum of all the selections is 100, and the user can’t submit the form until this is fulfilled.

    Is there any way to include such a rule in my form? Any plugins or workarounds would be appreciated.

    Regards,

    Paul

    https://wordpress.org/plugins/contact-form-7/

Viewing 1 replies (of 1 total)
  • Conditional Logic which is not available directly in the Contact Form 7 plugin. It can be done via custom programing but you would need to be rather skilled at WordPress development using PHP and/or jQuery.

    Some of the premium Form plugins do offer some Conditional Logic including Gravity Forms and Ninja Forms.

Viewing 1 replies (of 1 total)
  • The topic ‘How to add conditional fields / rules to form’ is closed to new replies.