Hi all,
Could anybody please help me adding option to an optionset using javascript
I tried the below:
Is that true ?
Thanks in advance..
Could anybody please help me adding option to an optionset using javascript
I tried the below:
var advanceOption = new Option(); advanceOption.value = 2; advanceOption.text = "Advance"; Xrm.Page.getControl( "optionsetfieldname" ).addOption( advanceOption, 3 );My understanding is that addOption function takes two parameters, the new option and the option order in optionset
Is that true ?
Thanks in advance..