# Formula in Validation

**URL:** <https://community.ragic.com/t/formula-in-validation/1755>\
**Category:** Support\
**Created:** [December 14, 2018, 1:19pm UTC](https://community.ragic.com/t/formula-in-validation/1755 "2018-12-14T13:19:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![joelawrence51095](https://community.ragic.com/letter_avatar_proxy/v4/letter/j/9f8e36/32.png) [@joelawrence51095](https://community.ragic.com/u/joelawrence51095)\
**Post date:** [December 14, 2018, 1:19pm UTC](https://community.ragic.com/t/formula-in-validation/1755/1 "2018-12-14T13:19:02Z")

</div>

Hi, I’m looking to use a formula in the validation tab in Field Settings.

For example, I need a date filled in to be at least 4 weeks after the date the record was submitted. I know that if I have a date field A1 and add 1 to it (A1+1) then it gives me the date of tomorrow back.

I tried ’ \>(A8+28) ’ where A8 is the date the form was submitted and it didn’t work.

Am I just being dumb?

Any help is appreciated!

Joe

---

<div class="post-metadata">

**Author:** ![amy](https://community.ragic.com/user_avatar/community.ragic.com/amy/32/64_2.png) [@amy](https://community.ragic.com/u/amy)\
**Post date:** [December 17, 2018, 2:21am UTC](https://community.ragic.com/t/formula-in-validation/1755/2 "2018-12-17T02:21:46Z")

</div>

Hi Joe,

Formula is not supported in Validation. You will need to input “regular expression” or a fixed string in validation. For detailed information regarding validation, you may refer to [this article](https://www.ragic.com/intl/en/doc/20/Validation).

And here is the workaround for your case:

1. Create a free text field assigned with [IF() conditional formula](https://www.ragic.com/intl/en/doc/18/Formulas#conditional) to check if it meets the criteria, if so, return “Y”, if not, return “N”.
2. So that you can set up validation check “Y” to this new field to make sure users can only save the entry when it’s with value “Y” (which is retrieved by formula).
