For example, if you populate a user in the Caller field, it automatically sets the location, phone number, etc... (Any other derived field on the form/view) This changes the query from
This causes issues when the glide.ui.format_phone system property is set to true (by default). Search screens support only STARTSWITH queries and because the condition looks for caller_id.phone records that start with (###), no records are being returned because the phone number values are stored without the parenthesis in the sys_user table.
Steps to Reproduce
Note - These steps to reproduce show an example of the detrimental effect of client scripts running on an Incident search screen but this problem also applies to UI policies and to Problem and Change search screens.
Ensure that demo user Abel Tuter has both a location and phone number defined in his user record.
Ensure that Location and the derived field Business Phone are added to the incident form (default view).
Create one or two incidents with Abel Tuter as the caller.
Right-click the Incident application menu and choose Edit.
Add a new module in the related list with the following values:
Link Type: Search Screen
View name: Default
Open the module and enter Abel Tuter.
The location and phone number are populated unexpectedly.
Note that the phone number and location are included in the search conditions and that the phone number is formatted with parenthesis around the area code. This formatting results in no records being returned from the search.
Removing the phone number condition from the query returns the expected results. Setting the glide.ui.format_phone property to false will format the phone number as it is listed in the user record, which will return the records.
There is no known workaround for this issue. To receive notifications when more information is available, subscribe to this Known Error article by clicking the Subscribe button at the top right of the article. If you are able to upgrade, review the Fixed In field to determine whether any versions have a permanent fix.
Related Problem: PRB650436