Duplicate Snippet
Embed Snippet on Your Site
Limit Range Allowed in Numbers Field
This snippet will allow you to add a CSS class to any Number field and set a minimum of 5 and a maximum of 20.
After adding this snippet, simply add the CSS class of wpf-num-limit to any Numbers field and the limits will be automatically applied. You can see where to add this CSS class on this screenshot: https://a.supportally.com/i/4HRv5N
If you want to read more about setting restrictions on the range permitted in the Numbers field, you can see the full tutorial here. https://wpforms.com/developers/how-to-limit-range-allowed-in-numbers-field/
Code Preview
php
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
Comments