Hi everyone,
On an OnLoad event for a Form, I have the following expression which works for hiding a tab and showing a different tab based on the value of a text field.
function HideTabOne() { if(Xrm.Page.getAttribute(/column_logical_name/).getValue() == /Test 1/) { Xrm.Page.ui.tabs.get(/tab_one/).setVisible(false); } else { Xrm.Page.ui.tabs.get(/tab_two/).setVisible(true); }}
How could I add an additional condition to this expression so that if the text field equals /Test 2/, then tab_one should be visible, and tab_two should be hidden?
Best regards,
I have the same question (0)