- Posts: 259
- Thank you received: 22
Custom Field Attributes
- rodfarrell
-
Topic Author
- Offline
Less
More
2 years 8 months ago #359729
by rodfarrell
Custom Field Attributes was created by rodfarrell
I'm struggling with custom field attributes. I have a custom field "Item" and field type = Text. I want to restrict the input to whole numbers with no decimal places. I can specify in the attributes type="number" but this allows decimals. type="integer" doesn't work. What should I be entering here?
Please Log in or Create an account to join the conversation.
2 years 8 months ago #359733
by nicolas
Replied by nicolas on topic Custom Field Attributes
Hi,
You want to make the custom field required and fill the "regular expression" option with something like this:
You want to make the custom field required and fill the "regular expression" option with something like this:
Code:
^\d+$
Please Log in or Create an account to join the conversation.
- rodfarrell
-
Topic Author
- Offline
Less
More
- Posts: 259
- Thank you received: 22
2 years 8 months ago #359773
by rodfarrell
Replied by rodfarrell on topic Custom Field Attributes
Perfect. Thank you
Please Log in or Create an account to join the conversation.
Time to create page: 0.050 seconds