Question
Accenture
US
Last activity: 30 Aug 2017 11:34 EDT
Alphanumeric prefix validation.
Hi,
I have a requirement to add validation on a particular field.
Below are the requirements:
1) Field can accept only 9 digits OR
2) Field can accept 2 alpha characters + 9 digits OR
3) Field can accept 1 alpha character + 8 digits.
Any thoughts are greatly appreciated!!
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
IN
Hi Saurabh,
You can achieve your requirement by creating an edit validate rule where you can write your logic to validate the property.
Regards,
Vikash
Pegasystems Inc.
US
For your reference, you can look into the existing Edit Validate rules from Records Explorer > Data Model > Edit Validate(will list all the existing edit validate rules) and more information can be found here.
Accenture
US
I don't find similar Edit Validate rule from the existing one.
J.P. Morgan Services India PVT Ltd
IN
HI Saurabh,
as the requirement is kind of specific to your use case, I dont think you will get the exact edit validate rule, any how you can take reference from the existing some validate rules (isletterordigit, pychecklength etc..)
ai4process
GB
Hi Saurabh,
You can solve this by creating a validate rule (Create>Process>validate), (Edit validate and validate are different).
You can apply all conditions you need on this rule and call it in obj-validate step of your activity or in the validate tab of flow action.
Accenture
US
We are looking to take action client side and obj-validate won't work in this case. Real solution will be Edit-Validate but I am looking if someone has built this kind of scenario.
ai4process
GB
In that case you can create your own edit validate rule and validate the input using java code. Use variable theValue to refer to the value inside the input field.
Here is the sample code from ootb edit validate rule FileType:
Coforge DPA
IN
The below logic will fit for you hopefully: