The user.phone variable doesn't work

Document ID : KB000117317
Last Modified Date : 10/10/2018
Show Technical Document Details
Issue:
I'm trying to specify the variable $(_.user.phone) as a field value as per the documentation. Even though my user has a phone number this does not fill in the field. In addition if my field is "required" this seems to remove the asterisk denoting this.
This is documented here:
https://docops.ca.com/ca-service-management/17-1/en/using/service-catalog-management/manage-forms/customize-a-predefined-form
Resolution:
This is being corrected in the documentation but now that the user fields contain multiple phone numbers this variable should be specified as:
$(_.user.phone[0])
or if you want to remove whitespace:
$(_.user.phone[0].trim())
As long as you have a valid variable in "value" the asterisk denoting a required field is preserved as well.