please be gentle .. I'm learning
I have two sections in a tab (SUMMARY_TAB)
Section 'Section_ATAGLANCE' has a two option field new_ddmandate
Section 'Section_DirectDebit' has three fields.
what I want to do is on form load hide the Section_DirectDebit IF the value of new_ddmandate is false
I have had a look at some JS but to be fair im a bit confused. I've tried using
function showhidedirectdebit()
{
var paybydd = Xrm.Page.data.entity.attributes.get("new_ddmandate").getValue();
if(paybydd == 1)
Xrm.Page.ui.tabs.get("SUMMARY_TAB").sections.get("Section_DirectDebit").setVisible(true);
else
Xrm.Page.ui.tabs.get("SUMMARY_TAB").sections.get("Section_DirectDebit").setVisible(false);
}
but just get an error. Can anyone see where I have gone wrong in the first instance before I start posting up error code
*This post is locked for comments