Look at the following lines: var RecordTypeText = Xrm.Page.getAttribute("nhs_recordtype").getSelectedOption().text; var StartupText = Xrm.Page.getAttribute("nhs_startup").getSelectedOption().text(); In the first one your are retrieving a property, in the second one you are calling a method. There should be nothing after the text property in your second line.
↧