Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

User Registration || Form Validation

Manu269
All-Star
All-Star

Hello Team,

We are working on Create User Form and need some assistance with basic validation condition.

If anyone has working sample for below compnents please share :

1. Phone Number :  At first, we need to validate a phone number of 10 digits with no comma, no spaces, no punctuation and there will be no + sign in front the number

2. Email : 

An email is a string (a subset of ASCII characters) separated into two parts by @ symbol. a "personal_info" and a domain, that is personal_info@domain. The length of the personal_info part may be up to 64 characters long and domain name may be up to 253 characters.

The personal_info part contains the following ASCII characters.

  • Uppercase (A-Z) and lowercase (a-z) English letters.
  • Digits (0-9).
  • Characters ! # $ % & ' * + - / = ? ^ _ ` { | } ~
  • Character . ( period, dot or fullstop) provided that it is not the first or last character and it will not come one after the other.

The domain name [for example com, org, net, in, us, info] part contains letters, digits, hyphens, and dots.

3. First name/lastname to contain only characters : To get a string contains only letters (both uppercase or lowercase) which allows only letters.

4. Start Date (Date Type Form) will be always current or future date

5. End Date (Date Type) will not be more than 90 days from current day

Please assist...

Regards
Manish Kumar
If the response answered your query, please Accept As Solution and Kudos
.
14 REPLIES 14

CR
Regular Contributor III
Regular Contributor III

@Manu269  you want DA above fields ? for crearte user form?


Thanks,
Raghu
If this reply answered your question, Please Accept As Solution and hit Kudos.

DA is already present for register user form.

I need help with Validation Condition to be added as per above ask.

Regards
Manish Kumar
If the response answered your query, please Accept As Solution and Kudos
.

PremMahadikar
Regular Contributor III
Regular Contributor III

Hi @Manu269 ,

I have working sample for 4 and 5:

4. Start Date (Date Type Form) will be always current or future date

${(startdate > currentdate-1)}

5. End Date (Date Type) will not be more than 90 days from current day

${(enddate > currentdate-1) && (enddate < currentdate.plus(90))}

Will let you know if I can find something for other cases.

 

If this reply answers your question, please consider selecting Accept As Solution and hit kudos.

rushikeshvartak
All-Star
All-Star
  1. Phone Number https://forums.saviynt.com/t5/identity-governance/phone-regex-validator/m-p/36824#M20847
  2. Email - ^[a-zA-Z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$

 

https://forums.saviynt.com/t5/ars/various-usage-of-dynamic-attributes/ta-p/37329


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

Manu269
All-Star
All-Star

Thanks @rushikeshvartak @PremMahadikar for inputs.

I will validate and confirm.

Also can we have any sample for 3.

Regards
Manish Kumar
If the response answered your query, please Accept As Solution and Kudos
.

PremMahadikar
Regular Contributor III
Regular Contributor III

@Manu269 ,

3.  First name/lastname to contain only characters : To get a string contains only letters (both uppercase or lowercase) which allows only letters.

^[a-zA-Z]*$

 

It is working but validation message is coming as 

Regex Validation Failed For
Lastname
Firstname

 

Can this be adjusted?

Regards
Manish Kumar
If the response answered your query, please Accept As Solution and Kudos
.

Can you share screenshot?


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

Here you go :

Manu269_0-1712116342328.pngManu269_1-1712116361148.png

 

Manu269_2-1712116402408.png

 

Regards
Manish Kumar
If the response answered your query, please Accept As Solution and Kudos
.

As per regex only alphabets allowed so its expected error.


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

PremMahadikar
Regular Contributor III
Regular Contributor III

@Manu269 ,

Use regex accordingly to your requirement.

And from the screenshot I see you have mentioned Failure message, but that only works for 'validation condition'. Currently we don't have an option for displaying failure regex message. Similar ideas have been accepted for future release - Hide Regex validator message on UI and provide | Saviynt Ideas Portal

Currently a workaround for this would be to add a note or instruction for the user to provide acceptable value.

PremMahadikar_0-1712130809632.png

If this answers your question, please consider selecting Accept As Solution and hit Kudos

We follow better user experience approach 

rushikeshvartak_0-1712201036985.png

 


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

Manu269
All-Star
All-Star

@PremMahadikar  @rushikeshvartak 

Few more assistance,

1. We have a field  and we kept that as string.

We want to show a message, could be a tool tip or message to say, Please enter data in 'XYXYX' format.

Can this be achieved?

b. We have a field to capture Birth Date of a user. The type of this field is date and we are mapping to user cp31

There we want to store the data in format dd-MM-yyyy.

Can this be achieved?

Regards
Manish Kumar
If the response answered your query, please Accept As Solution and Kudos
.

PremMahadikar
Regular Contributor III
Regular Contributor III

@Manu269 ,

1. can be achieved by Label name. We also have bold, italic and underline to make it look clear/important to end user. Below is a sample:

PremMahadikar_0-1711026012554.png

2. I am not sure if you can manipulate that in one single DA.

Try this: Use another dynamic attribute called 'System format' where this DA is a child of Birthdate DA. Configure the desired value using query to save in user's table CP31 using actual DA value selected by user. Having it editable or not editable is a choice.

 

If this reply answers your question, please consider selecting Accept As Solution and hit kudos.