I have an extension application of the Customers application where I want to show a Business tab only if the Contact Type is Organization. What is the best practice of doing this?
I would recommend creating a new logic block that checks the value of Contact type and hides or shows the Business tab based on the value. You can hide/show entire pages on an app using the Hide or Show action in a logic block.
Then you can hook this logic block up to your extension app by adding an event action of type Form Init. That way the hide/show logic will run every time the app opens.
You can also add the same logic block to an event action of type Field Value Change, so the page will hide/show in real time when the user changes the Contact Type.
2 Likes
Thanks for the pointers; yes, I will try the field value change approach to dynamically hide or show the tab.