Matrix Field: How can I prevent a negative number from being entered?

  • Profile Image
    Asked on November 07, 2016 at 02:37 PM

    I have an order form using radio check and a matrix. I am exporting it into FileMaker to create several custom reports for all those that need to know for order fulfillment.

    I noticed 1 field was a negative number. How do I prevent this?


  • Profile Image
    Answered on November 07, 2016 at 06:36 PM

    Hello, since you never mentioned which field you're referring to, I checked your Submissions and found a negative value on your Matrix Field:

    If that's what you're referring to, then no, there's no innate feature/option to prevent users from entering negative values on the Numeric Textbox of a Matrix Field.

    As a workaround, you may use a visual cue (an error message of sort) that will tell them that it's not allowed by using Conditions and a Text Field. Here's what I had in mind:

    To achieve that, just do the following:

    1. Drag a Text field to your form.

    2. Create your condition as shown below:

    This means that IF the Matrix Field contains a - THEN show the visual cue that Negative Values are not allowed (optionally, you may also hide the Submit button to prevent them from sending the form if the visual cue error is displayed)

    Here's a cloned copy of your form showing that. Feel free to clone it if you need to see how I set it up.

  • Profile Image
    Answered on November 07, 2016 at 07:04 PM

    Thanks I'll give it a try.