Hello,
Could anyone help me with the JS syntax for selecting an option based on it’s name/label, rather than it’s value?
e.g. if option 1 has the value of 1 and the label ‘Brand1’, the below script correctly selects option 1, using the value=1 reference.
this.setChoiceValueByRecodeValue(1, true);
But how do I rewrite it to instead reference ‘Brand1’?
I tried using this code, but it doesn’t seem to work…
this.setChoiceValueByLabel('Brand1', true);
Is there something that I am missing here?
Thanks.