GlideDialogForm set view not working for users but works for admin

Chandler B
Mega Contributor

I have a GlideDialogForm popup for the customer_contact form that I want to display in a certain view. When I run it as an admin, it opens correctly in the view I set regardless of what view I have last viewed the form in. When I run it as a user it opens in the last view (possibly their preference view) they viewed the customer_contact form in. They do have access to set their view to the one I want to open as if they are on the form. To set the view, I run this before rendering it:

dialog.addParm('sysparm_view', 'Requestor2');

 

Why is this only working as an admin?

1 ACCEPTED SOLUTION

Weird that should have forced the view do you have avy view rules can uou check once?

View solution in original post

7 REPLIES 7

Weird that should have forced the view do you have avy view rules can uou check once?

Ahhh there was an OOB view rule for the customer_contact table that was forcing the view. Thank you! 

 

Do you know of a way to bypass the view rule in the popup only? Otherwise I assume I will have to just modify/disable that rule based on needs. 

Hello

Yes you will need to modify thexruke as view rule will override our ui action

Thanks