# Regex to verify a field entry

**URL:** <https://community.fibery.io/t/regex-to-verify-a-field-entry/2105>\
**Category:** Ideas & Features\
**Tags:** flexible-domain\
**Created:** [October 6, 2021, 10:51am UTC](https://community.fibery.io/t/regex-to-verify-a-field-entry/2105 "2021-10-06T10:51:09Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Claude\_de\_Loupy](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/claude_de_loupy/32/1637_2.png) [@Claude\_de\_Loupy](https://community.fibery.io/u/Claude_de_Loupy)\
**Post date:** [October 6, 2021, 10:51am UTC](https://community.fibery.io/t/regex-to-verify-a-field-entry/2105/1 "2021-10-06T10:51:09Z")

</div>

Hi there.  
Is there any way to verify a field entry? I would like to apply a regex to different fields (email, URL, phone number…) to validate it has the correct structure.  
Thanks

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [October 6, 2021, 11:32am UTC](https://community.fibery.io/t/regex-to-verify-a-field-entry/2105/2 "2021-10-06T11:32:32Z")

</div>

It may be possible, depending on what you would like to happen if the entered data did not meet the validation criteria?

---

<div class="post-metadata">

**Author:** ![Claude\_de\_Loupy](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/claude_de_loupy/32/1637_2.png) [@Claude\_de\_Loupy](https://community.fibery.io/u/Claude_de_Loupy)\
**Post date:** [October 6, 2021, 12:55pm UTC](https://community.fibery.io/t/regex-to-verify-a-field-entry/2105/3 "2021-10-06T12:55:15Z")

</div>

Hi Chris,  
Thanks for your answer. Ideally, the entry should be rejected : impossible to validate it with a message like “Invalid email address”.  
If that is not possible, I can get around by creating a formula which will let the message appear near the email field in the entity window… It’s less satisfactory but I can live with it.

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [October 6, 2021, 1:13pm UTC](https://community.fibery.io/t/regex-to-verify-a-field-entry/2105/4 "2021-10-06T13:13:20Z")

</div>

I see a few ways of doing something potentially useful:

- you could create one or more formulas that check the data and give a useful message (maybe using icons for emphasis), e.g. ‘❌ Email value not acceptable’
- instead or as well as this, you could define an automation to notify someone that an invalid entry has been provided
- and/or you could define an automation that immediately deletes (clears) the entered data if it is not acceptable

Any of these sound interesting?

---

<div class="post-metadata">

**Author:** ![Claude\_de\_Loupy](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/claude_de_loupy/32/1637_2.png) [@Claude\_de\_Loupy](https://community.fibery.io/u/Claude_de_Loupy)\
**Post date:** [October 6, 2021, 1:16pm UTC](https://community.fibery.io/t/regex-to-verify-a-field-entry/2105/5 "2021-10-06T13:16:29Z")

</div>

I’ll go for the first one.  
Thanks for your incredible reactivity (yours and the whole Fibery team).

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [October 6, 2021, 1:22pm UTC](https://community.fibery.io/t/regex-to-verify-a-field-entry/2105/6 "2021-10-06T13:22:26Z")

</div>

You’re welcome! 😁

---

<div class="post-metadata">

**Author:** ![Matt\_Blais](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/matt_blais/32/1464_2.png) [@Matt\_Blais](https://community.fibery.io/u/Matt_Blais)\
**Post date:** [October 6, 2021, 5:40pm UTC](https://community.fibery.io/t/regex-to-verify-a-field-entry/2105/7 "2021-10-06T17:40:41Z")

</div>

Create an Action (automation) that triggers when the field is changed.

The Action can run a small script to check the new value, and CHANGE it (i.e., reject it) if necessary.

In the script if you throw an error, the error message will be displayed, and logged as a notification.

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [October 6, 2021, 6:04pm UTC](https://community.fibery.io/t/regex-to-verify-a-field-entry/2105/8 "2021-10-06T18:04:26Z")

</div>

Nice suggestion 🙂  
Just need to be careful not to trigger any loops (like if the automation triggers on the field being updated and then goes on to update that field itself…and gets retriggered)

---

<div class="post-metadata">

**Author:** ![Matt\_Blais](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/matt_blais/32/1464_2.png) [@Matt\_Blais](https://community.fibery.io/u/Matt_Blais)\
**Post date:** [October 6, 2021, 6:34pm UTC](https://community.fibery.io/t/regex-to-verify-a-field-entry/2105/9 "2021-10-06T18:34:31Z")

</div>

I certainly hope it is possible for an Automation script to change the value of the field that triggered it, without causing a loop! 🤔

---

<div class="post-metadata">

**Author:** ![Chr1sG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/chr1sg/32/3941_2.png) [@Chr1sG](https://community.fibery.io/u/Chr1sG)\
**Post date:** [October 6, 2021, 7:37pm UTC](https://community.fibery.io/t/regex-to-verify-a-field-entry/2105/10 "2021-10-06T19:37:54Z")

</div>

The action (in the automation) of updating **will** re-trigger the automation, but if you use suitable filters, you can prevent it from getting stuck in a loop.

So for example, this rule will cause a loop:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/2/2236d6f47dc97d8121c2cde486b37dee4d78efeb.png)

but this one won’t:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/5/526063899c7bdb7f8d1d644d6aaf223033085cd1.png)

---

<div class="post-metadata">

**Author:** ![nathan\_jay](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/nathan_jay/32/11899_2.png) [@nathan\_jay](https://community.fibery.io/u/nathan_jay)\
**Post date:** [November 19, 2025, 10:45pm UTC](https://community.fibery.io/t/regex-to-verify-a-field-entry/2105/11 "2025-11-19T22:45:48Z")

</div>

> [@Chr1sG](#):
>
> you could create one or more formulas that check the data and give a useful message (maybe using icons for emphasis), e.g. ‘❌ Email value not acceptable’

Rather than a formula field I would like this to be a setting os input validation on a text field i.e.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/3/32fd12229a39b0b1921182063a2b46f453c4668d.png)

which shows like this when you input an invalid number:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/1/1b5d47d6555f123010f06c7d68510495a8dba9ac.png)

I would rather stop the input and display an error although the workaround does in fact work with a bit of field bloat.

In case it helps anyone else I added a formula field:

`If(MatchRegex(ABN, "^\d{11}$") = true, "", "⚠️ Invalid ABN it must be 11 digits")`

And the filed display is set to “Hide when empty” so it only pops up when you enter an invalid number

![image](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/2/2e6229e7541e6e8b06f7a4d3289a6335415587e2.png)
