- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-24-2015 03:43 AM
Hi,
I wonder if anyone can help with this problem.
We have a catalog item that includes a variable set which displays a 'requestor name' and the related 'requestors company'.
The 'requestor name' is evaluated correctly and displays on the item form with a default value of 'javascript: gs.getUserID()'.
However, the 'requestors company' is not evaluated using 'javascript: gs.getUser().getCompany()' when the form loads - this script uses the syntax recommended in several posts on the community.
Does anyone know why this could be - is it the ordering of the variables on the form?
I can spend some time on creating another client script to populate this field but I wanted to check why this is not working,
many thanks,
Keiron.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-24-2015 04:52 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-24-2015 03:48 AM
Try this:
'javascript: gs.getUserID().getCompany()'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-24-2015 04:21 AM
Thanks Rajesh,
unfortunately this didn't work,
thanks,
Keiron.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-24-2015 03:55 AM
Try this
javascript:'sys_id='+(gs.getUser()).getCompanyID();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-24-2015 04:22 AM
Hi,
unfortunately this didn't work either.
I hope this isn't something to do with permissions,
thanks,
Keiron.