Hi! There are two syntax issues, you're missing an open brace "{" for setrequire(), it should be: function setrequire() { var type = Xrm.Page.getAttribute("cprs_type").getSelectedOption().text; Second, the load method is calling to set require but the syntax is off for that, you just need the name of the function: function Form_OnLoad() { setrequire(); } If you make those changes and your code still isn't being called, make sure that your form's on load event is calling into your custom javascript. Hope this helps! I'd appreciate if you'd mark this as a Verified answer. Thanks, Aiden
↧