how to check single line text should contain data in format "firstname lastname"

saranyavs
Tera Expert

Hi team,

 

In catalog item there is a field called 'name' as single line text, this should allow data only in below format. how to write the script ?

Firstname<space>Lastname

5 REPLIES 5

Tanushree Maiti
Mega Sage

Hi @saranyavs  ,

 

Could you please explain the background on your requirement.

Do you have requested for variable (reference variable )in your form. Or  you are placing Name text variable for that purpose.

 

Or based on other variable selection, you want to populate this name variable.

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin: