Decimal Places Support On Number Field With Min And Max Values

In this guide, we will explain how to input numbers with decimal places on the “Number” field with Min and Max values.

  1. Initial Setup:
  • Drag and drop a “Number” field onto your form.
  • Rename the field as needed.
image
  1. Configuring The “Number” Field:
  • Click the pencil icon on the “Number” field.
  • Fill in the “Min” and “Max” values as shown below.
image
  • Click “Add Custom Attribute”.
image
  • Add validation rules as shown below:

input || data-parsley-excluded || false

input || step || .01

input || pattern || \d+(\.\d{1,2})?

  • Save all the changes.
image
  1. Test The Form:
  • Now you can enter a number with decimal places between “Min” and “Max” values.
image

For any questions, please contact us - [email protected] or the Formyoula in-app chat. 🙂