Entity Pattern Values

You can give an entity a number of values in order to set acceptable inputs.

Pattern values are used when you want to allow a wider range of inputs, but still restrict them to a pattern. This is achieved using regular expressions (regex), e.g. you could assign the entity @EmailAddress a regex of:

[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?

This would reject any user input that did’t conform to this regex pattern.

In the following step-by-step example, we will :-

Select an Entity

From the Entity list page, select an entity and click Create Value (If the entity has no values yet, the sidebar will be automatically opened, showing the Text Value & Pattern Value types to choose).

Select Entity Humley Studio

Add a Pattern Value

Choose the Pattern value type from the sidebar

Choose Pattern Value Type Humley Studio

Enter in the sidebar -

  • Value Name Name the value. All value names must be unique within the entity. This is just a label for the regex pattern(s) added to this value.

  • Pattern (optional) Add a regex (regular expression) for this value. All Patterns must be unique within the Pattern Value. Any user inputs that conform to the regex pattern will be accepted and stored.

    Add multiple Patterns as required

Add Pattern Value Name & Regex Humley Studio

Click Create Value

Your new pattern value will be shown in the value list under it's entity

Entity Pattern Value Saved Humley Studio

Still need help? Get in touch!
Last updated on 2nd Jan 2020