# Custom Numeric Field Validation

**URL:** <https://discuss.workflowgen.com/t/custom-numeric-field-validation/1358>\
**Category:** Form Designer\
**Created:** [April 9, 2019, 12:29pm UTC](https://discuss.workflowgen.com/t/custom-numeric-field-validation/1358 "2019-04-09T12:29:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![marinam](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.workflowgen.com/marinam/32/322_2.png) [@marinam](https://discuss.workflowgen.com/u/marinam)\
**Post date:** [April 9, 2019, 12:29pm UTC](https://discuss.workflowgen.com/t/custom-numeric-field-validation/1358/1 "2019-04-09T12:29:01Z")

</div>

Hello,

Is there a way to validate numeric field that should contain only numbers with increments +15.  
E.g. Requester is allowed to enter time he spent on task, but only (15, 30, 45, 60, 75, 90,…) minutes.

Thank you!  
Marina

---

<div class="post-metadata">

**Author:** ![eddy.daouk](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.workflowgen.com/eddy.daouk/32/672_2.png) [@eddy.daouk](https://discuss.workflowgen.com/u/eddy.daouk)\
**Post date:** [April 9, 2019, 6:23pm UTC](https://discuss.workflowgen.com/t/custom-numeric-field-validation/1358/2 "2019-04-09T18:23:16Z")

</div>

Hi @marinam,

Yes, you can add a custom validation to the desired field and use the modulo operator:  
`Double.Parse(REQUEST_NUMBER.Text) %15 == 0`  
This means that the field is valid only if you divide the indicated number by 15 and the remainder is 0.

![32%20PM](https://canada1.discourse-cdn.com/flex030/uploads/workflowgen/original/1X/c436d49a880a6fa5448777cd1affd11887e156eb.png)

Regards,  
Eddy.

---

<div class="post-metadata">

**Author:** ![marinam](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.workflowgen.com/marinam/32/322_2.png) [@marinam](https://discuss.workflowgen.com/u/marinam)\
**Post date:** [April 11, 2019, 7:13am UTC](https://discuss.workflowgen.com/t/custom-numeric-field-validation/1358/3 "2019-04-11T07:13:16Z")

</div>

Thank you, @eddy.daouk. This helped a lot!

---

<div class="post-metadata">

**Author:** ![eddy.daouk](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.workflowgen.com/eddy.daouk/32/672_2.png) [@eddy.daouk](https://discuss.workflowgen.com/u/eddy.daouk)\
**Post date:** [April 12, 2019, 2:48pm UTC](https://discuss.workflowgen.com/t/custom-numeric-field-validation/1358/4 "2019-04-12T14:48:56Z")

</div>

Glad to help @marinam!
