Solved! Go to Solution.
Yes, you can hide/show/required/optional fields using Business Rules and Hide/show tab or section using JavaScript.
Please mark as solution if this helps you!
YYou can not hide show tab or section using business rule.
You need to use javascript for hide show tab or section.
function hideTab(executionContext) {
formContext = executionContext.getFormContext();
var tabObj = formContext.ui.tabs.get("tabname");
tabObj.setVisible(false);
//For show tab
//formContext.ui.tabs.get("tabname");
tabObj.setVisible(true) ;
Please review ms doc:
Thanks @hardikv i went through this artical intially and thought may be the docuentaion is not updated or i am missing something.
I think this feature should be added as there are times when we need to show/hide the complete section based on the condition and need to make the fields required or optional within the section. Now fields can be made required/optional or show/hide using business logic but just to show/hide the section we have to use the code/javascript.
Yes, you can hide/show/required/optional fields using Business Rules and Hide/show tab or section using JavaScript.
Please mark as solution if this helps you!
I have created some Generic Method to Hide and Show Tab and Section
Please refer here : https://vjcity.blogspot.com/2021/07/generic-method-to-hide-and-show-tab-and.html
awesome. I have emailed you for more info. Much appreciated.
You could hide an entire section using business rules by adding the fields you want to hide and show at the same time into the section and hiding the section label. Then using a business rule to hide all fields based on certain criteria or show all fields. That will hide and show the entire section.
I have created a quick video to demonstrate this.
User | Count |
---|---|
124 | |
87 | |
86 | |
75 | |
69 |
User | Count |
---|---|
214 | |
181 | |
140 | |
96 | |
83 |