title: javascript - Make all fields on a form required
body: <p>I want to be able to loop through all the fields on a form and make them required in a bit of javascript. I have been able to do a similar thing to make them disabled and have retrieved them all with <code>var controls = Xrm.Page.ui.controls.get();</code>, but I know to set requirement level I need to get the attribute rather than the UI control, how can get get all attributes at once so I can loop through them?</p>
  
  <p>Thanks</p>