For my HTML webresource I'm retrieving the value of an optionset field via XrmServiceToolkit.
XrmServiceToolkit.Rest.RetrieveMultiple("tisa_qualitycontrolassessmentSet", "?$select=tisa_questionscore",
function(results) {
for (var i = 0; i < results.length; i++) {
var tisa_questionscore = results[i].tisa_questionscore;
}
},
function(error) {
Xrm.Utility.alertDialog(error.message);
},
function() {
//On Complete - Do Something
},
false
);
There is no problem. Now I need to add into my HTML page a dropdown input field with the selected value from my query and show a list(dropdown) with the rest of the options of my optionSetValue. The values of the field can be 0 - NO, 1 - Yes and null.
Which is the best practice to create this input field?