How do you handle multiple controls for an attribute?

Jan 17, 2013 at 5:01 PM

According to the documentation, it seems you are generating a Form.Attribute.<fieldname> object that gives you both the Xrm.Page.getAttribute('fieldname') and Xrm.Page.getControl("fieldname") combined into one object.

What happens when an field for a certain attribute is added to a form multiple times?

I expect you can access them through an Form.Attribute.<fieldname>.controls.get()?

But the point is, when this happens there is a 'fieldname' and 'fieldname1' control. What if you want the second instance of a control for a specific attribute? How do you access it?

Coordinator
Jan 17, 2013 at 5:20 PM

Currently it does not support multiple controls for an attribute.  It will just default to the first control in the collection.