Obviously it is for an HR form that only lets users enter increments of 4 or 8 for the value entered. So I figured one way may be is to take the inputted number, divide it by 4 and see if I get a whole number by using conditions. If it is not divisible by 4 then a decimal would appear making it known it is not divisible by 4 with a return of a whole number. I looked at all the functions and I can't find one that one would sort this out.

有帮助吗?

解决方案

Follow the steps below:

  1. Add an additional field named “modValue” and set the default value to number mod 4.

    enter image description here

  2. Remove the field from the form to make it as a hidden field.

  3. Select the number field and add a Validation rule.

    enter image description here

Condition:

enter image description here

许可以下: CC-BY-SA归因
scroll top