Default Phone Variable Value
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-25-2017 12:53 PM
Hello
Right now, when a user opens a service request, the form auto populates the phone number with the logged in user. I want the phone variable to be based off of the "requested for" variable. How would I go about doing this? Here is the script in the default value for the phone variable.
I'm not sure I'm wanting to actually get the userID? I may be wrong though. Thank you

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-25-2017 12:56 PM
Hello,
Remove 2nd line and replace 4th line with user.get(current.request.requested_for); and try once.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-25-2017 01:01 PM
Phone number shows up blank. The actual request for variable is "Requester". I adjusted your script with that and still nothing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-25-2017 12:59 PM
Use phone = current.request.requested_for.phone
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-25-2017 01:16 PM
Thanks for the response, however, phone number shows up blank now