How to set form view based on value using onload client script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2022 04:27 AM
Hi ,
I am trying to set form view based on the value in form using onload client script.
I have tired with switch view method , but the page is loading continuously . please help over here
Thanks & Regards,
kalyani
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2022 04:38 AM
Hi @kalyani23
please explain why you want to do it on client side. It is not recommended as the page has to be loaded again, what is a really bad user experience.
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2022 04:45 AM
if client side is not the best approach, can u suggest me another approach to make it work.
Regards,
kalyani
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2022 06:36 AM
Hi @kalyani23
please follow the instructions on https://docs.servicenow.com/en-US/bundle/tokyo-platform-user-interface/page/administer/navigation-an...
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-26-2022 12:46 AM
Hi Maik,
Yes I have tried using View Rules and it worked .
thank you