toto1999
toto1999

Reputation: 213

Can we hide a field from composite adress without hidding it from the form?

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? enter image description here Thanks in advance,

Upvotes: 1

Views: 616

Answers (1)

dynamicallyCRM
dynamicallyCRM

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

Related Questions