I have a list with a Number column and created a Responsive Nintex form for this list.
I need to add a validation on this column to only accept integer numbers.
Here is what I've done:
Regular expression: ^(\d|,)*\d*$
But it is not working!
Could you please advise?
Solved! Go to Solution.
For a simpler approach, it may be easier to just set a validation control from the rules builder. You can add it to the control directly and set it up like below (with 'Integer' being the name of the control):
When running the rule it will look like this.
This same behavior can be applied in Responsive forms as well.
it'd helpful if you provided some samples of acceptable and not acceptable inputs. your requirements are not very clear.
what's eg. comma in your regex meant for? should it decimal or thousand separator? or is that a just an trial&fail attempt?
should it accept negative intergers?
should it accept or force +/- sign in front of integer?
but for the beginning let's try following pattern. it accepts comma as a thousands separator