How to check a field value is equal or less than another field on submit?

By: Dave j | Asked: 12/21/2024
ForumsCategory: General questionsHow to check a field value is equal or less than another field on submit?
Dave j asked 1 month ago
I have two number fields on the same form, what I want to do is on submitting the form check if field 2 equal or less than field 1
Rob LeVineRob LeVine replied 1 month ago

And then do what with that information? Are you trying to stop the submit or filling a field or what? If it's the former use <a href="https://formidableforms.com/knowledgebase/frm_validate_entry/&quot; target="_blank">frm_validate_entry</a>, if it's the latter, use <a href="https://formidableforms.com/knowledgebase/frm_after_create_entry/&quot; target="_blank">frm_after_create_entry</a>

Dave j replied 1 month ago

Yes, I want to stop the submit and show warning.

Victor Font replied 4 weeks ago

You can only stop a submit using jQuery on the front end. Here's an example: https://stackoverflow.com/questions/9347282/using-jquery-preventing-form-from-submitting

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right