Avatar of Andy Green
Andy Green
Flag for United Kingdom of Great Britain and Northern Ireland

asked on 

Javascript findItemByValue test first

Hi I have the following to select a value in a dropdown list:

comboBoxPPIPWL.findItemByValue(checkboxText).set_checked(true);

However the line fails if checkboxText isn't found.

How do I test first then set checked if found.

Andy
JavaScript

Avatar of undefined
Last Comment
Andy Green

8/22/2022 - Mon