ServiceNowDevProgram / 911-Dispatcher-Workspace

https://github.com/ServiceNowDevProgram/Hacktoberfest
4 stars 42 forks source link

Caller detail section hiding optimization & create button disability enabled along with regex for phone number for string validation #36

Closed TRIGGEREDcoder closed 11 months ago

TRIGGEREDcoder commented 11 months ago

The changes made in the variant Home with emergency call - Layout Change and Validations,

Caller Details section will now only be visible when the number entered will be matched in sys_user table. Location will only be shown if location is present, otherwise only name will be shown in that section. Create button will be disabled until valid number and short description is entered. A validation for the phone number has been configured using regex which will check if any letter are present in the entered number by mistake.