Reputation: 213
I added the field adresse: city to the form and I need to hide it from composite adress so as not to have it twice in the form. Is there any way to do this? Thanks in advance,
Upvotes: 1
Views: 616
Reputation: 2980
Hiding composite address fields on the form is no different than hiding regular form fields.
Use the control's SetVisible property to hide it.
Xrm.Page.getAttribute('address1_line1').controls.forEach(function(ctrl) {
ctrl.setVisible(false);
});
Upvotes: 2