
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2020 08:19 AM
Ok.. On a Catalog Item in the variable section, is it possible to dot walk on the default value to another table?.
Below Default Value gives me the users department name.
javascript:gs.getUser().getRecord().getDisplayValue('department');
But what if i have a variable called floor number on department (or something custom) and I want this to auto fill when the user open the catalog item in the portal. Can that be done?
javascript:gs.getUser().getDepartmentID().getRecord().getDisplayValue('u_floor');
javascript:gs.getUser().getRecord().department.u_floor.getDisplayVaule();
Solved! Go to Solution.
- Labels:
-
Service Portal Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2020 08:48 AM
You will need to use script include in default value with below syntax
javascript: new ScriptIncludeName().functionName();
Regards,
Sachin

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2020 08:48 AM
You will need to use script include in default value with below syntax
javascript: new ScriptIncludeName().functionName();
Regards,
Sachin