Take user to a different tab
Hi there,
I'm working on a new tab (Agreement to support) on my opportunity page and these fields are only necessary to fill if the field "ATS necessary?". I'll work with business rules to make the fields required, but I'd like to automatically take my user to the tab, if they select "Yes" to the field mentioned (similar to process to take to a different page, but only to take them to the tab on the same page). Is it possible?
Like
Hello Ana Bernardi,
If I understand correctly, you want to change the tab automatically to a different tab e.g. Feed tab, when a user set the boolean to true (or make changes to any other field).
To do this you need the tab code(you can find it in Section Wizard) to which you want to navigate automatically (in my example its "ESNTab").
Then on the Opportunity page schema you need to add the code similar to below,
In attribute:
attributes: { "UsrChangeTab": { "dependencies": [ { // Column on which change will happen "columns": ["UsrChangeTab"], //Method to handle the change "methodName": "changeToFeedTab" } ] }, },
In methods:
methods: { changeToFeedTab: function() { //If Boolean is true, navigate to ESN Tab if(this.get("SKSChangeTab") == true){ this.set("ActiveTabName", "ESNTab"); } } },
I hope this helps.
Thanks & Regards,
Sourav Kumar Samal