We have a form consisting of dynamic attributes while creating Service Accounts under 'Manage Service Account Tile'.
One attribute is Account Name, which is a free text field wherein the requestor types in the account name manually, without anything specific being generated. We haven't written any accountname rule for the endpoint as the requestor needs to add manually an accountname to the Service Account in the form
Our requirement is, whenever the requestor inputs an account name which is 15 characters long, it should pop the requestor an error message, or not allow the requestor to go to next page.
Is there any way we can write a validation condition that the accountname should be only 15 characters long, irrespective of whatever the accountname that has manually been input?
Any help is greatly appreciated. Thanks
This can be done using Regex .
Below link for reference.
Can you please try the below REGEX
And please trace the logs once you execute the above regex.