Unable to see VIEW option in the form

Nisha30
Kilo Sage

hello Experts,

 

We have created new View but when we open the record there is no option to choose view from.

I am admin even though . Anything missing? 

 

we created that view have checked in Form Layout.

 

Thanks

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@Nisha30 

Did you try to clear cache using cache.do and then logout and login again?

Did you check any view rule created?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

HI @Ankur Bawiskar 

 

I logged out and logged in . This time

1) i have created 2 groups : one is UtilityBilling with role= utility_bill and added a user in it

   another is Group= CCN with role =ccn and added another user to it.

 

2) created new View = UtilityBilling

 

3) created view rule as below so that only user with role=utility_bill can view the VIEW=UtilityBilling.

  User with role= role=utility_bill is not restricted to that view . it is the Default view when he opens the record

 

(function overrideView(view, is_list) {

    // Add your code here
    //answer = null;  // set the new view to answer

    var utbil = gs.hasRole("utility_bill");
    var ccn = gs.hasRole("ccn");//make only ccn view readable

    if(utbil && !ccn)
    answer= UtilityBilling;

})(view, is_list);