How to access form variable in advanced script of View Rules

Rajesh M1
Giga Guru

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.

find_real_file.png

Thanks in advance

Rajesh M.

6 REPLIES 6

Chuck Tomasi
Tera Patron

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?

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.

I see one view rule here. It's for case #2.

 

#1. The ESS view from the portal can be set via the widget options.

#2. Create a view rule (not advanced) something like the picture below.

#3. in the absence of a rule, default will apply (or whatever the user had last selected.)

 

find_real_file.png

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?