
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-23-2017 11:24 AM
Hi all,
I'm on a form with a view forced via view rule ... . Now I have a UI action that will change the "reason" for the view to be forced to a value that will force an other view ... so after the update, I do not stay on the record (with the new view forced) as requested.
>>> action.setRedirectURL(current); at the end of the UI action does not work (most reasonable due to the forced view ... ). Any idea to workaround this issue?
Thank you!
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-29-2017 07:25 AM
Found a WORKAROUND ...
I just added required fields to the current view, that are only relevant if the phone type has been changed .. to I get the work done ... 😉
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-23-2017 12:17 PM
If you have a view enforced by a rule, why would you want to override that rule from outside the view rule? What's the use case?
It sounds like you're contradicting your own view rules and the result is as expected.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-23-2017 12:20 PM
... view is forced on the type of the device. But there are use-cases to change the type, that will require total different values to be set .. and displayed ... . so the view needs to be changed if the record type is changed ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-23-2017 12:35 PM
Perhaps you could share some screenshots on what you're trying to do
Not sure what you mean by "so the view needs to be changed if the record type is changed".
Would you like the view to change on the client when a user picks a new choice field value like in an OnChange Client Script?
Then you would need to trigger a form reload/refresh action.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-23-2017 12:43 PM
A phone number is a phone number with all its fields that should be set - like if that number is to be used on an iphone too ... - but if this number is to be used as a hunt group, totally different information is relevant - like the type of the huntgroup (broadcast, sequential etc.) ..
SO .. as the numbers are predefinded, it needs to be possible to convert them into a hunt group ... and stay on the form to add the required values ...
But as the view needs to be forces depending on the type ... this does not work.