Quantcast
Channel: CRM Development forum
Viewing all articles
Browse latest Browse all 8223

CRM 2011: Adding option to optionset using javascript

$
0
0
Hi all,

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..

Viewing all articles
Browse latest Browse all 8223

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>