I am newbie with CRM and
I was googling for how to hide and show a text field using jScript
library in MS CRM
(online) and found several options of using the function setVisible
.
I tried those options:
Xrm.Page.ui.tabs.get('new_fieldname').setVisible(false);
Xrm.Page.data.entity.attributes.get('new_fieldname').setVisible(false);
Xrm.Page.getAttribute('new_fieldname').controls.get(0).setVisible(false);
But only the last one is really working. The first option gives me an error message.
What is the different between them?