change the view of the form automatically
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-15-2022 11:03 PM
We have a knowledge base(public) and the articles created under it have a different view(public) . a new module is created under knowledge menu to track/view /create knowledge articles of the KB and view rule is also created for it so that when the user comes to this module and view/create the articles the form will be displayed as per the view configured
Now the challenge is for example if the user want to create a new article not from the created module in general if the user goes to my knowledge articles menu ->new-> select KB-> and fill the form and submit the view will be default only
so the clients have asked us to change the view when ever the user selects the knowledge base as public the view of the form should be public only
for example if the user make the filter knowledge base as public and if he click on the new button the form which displays should not be default one
for this i am trying to create a on change client script for the knowledge base field on change of the knowledge base field the view view should be changed and also on load of the form for the knowledge base =public the form should be public view please do help us in achieving this requirement
The view rule i have created works for only the new module we have created it is not working when ever we keep the filter condition knowledge base=public

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-16-2022 12:54 AM
Hey,
I don't think form views works that way.
If you want to change the view, that will only happen once the form is rendered and not using onChange client script.
And logic you are looking for can be easily administered by using view rule.
Aman Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-16-2022 02:30 AM
i have the view rule already set but the view rule is getting applied to the module filter alone not reflecting in other places for example
if the user comes and types my knowledge articles-> applies filter as knowledge base='XXX' and run the filter and if he wants to create new article he clicks new button -> the new created record form will have knowledge base as 'XXX' but the view still be default one not the view which was set in view rule
where as if the user open the module in which the filter condition is already set he click the new button the new record form will be automatically have the view which was declared so wanted that to happen all the time where ever that filter condition is set