How to access form variable in advanced script of View Rules
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2018 04:12 AM
Hello,
How to access form variables of a table in advanced script of View rules.
For example I have to access priority value of incident record to be fetched in the advanced script.
current.priority is not returning any value.
Note: priority value is accessible through condition builder but my requirement is to access the value from script field.
Thanks in advance
Rajesh M.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2018 06:25 AM
Hi Rajesh,
The way view rules work is on a list OR a form. Since lists are in play, then there's no 'current' object available like there is a UI action or business rule.
It might help to understand what you are trying to do - as there may be other options. What is the business requirement you are trying to solve?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2018 10:51 AM
Hello Chuck,
I Apologize for not mentioning the full requirement.
Below is my requirement:
We have 3 different view on incident form "ess", "default" and a custom view "issue". we want views to be applied as per below conditions:
1. All users who opens/views the ticket through portal should have ess view.
2. We have a checkbox by the name issue on incident form, if the value of this field is true then "issue" view should be applied.
3. When value in "Issue" field is false then apply default view.
As we are able to access the table field values from condition builder so is there a way to access the value from script field using any object.
Best Regards,
Rajesh M.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2018 06:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2020 09:23 AM
That's joke.
I can look at current object in simple mode conditions, but not in advanced script?
Is lists are not in play in simple mode?