0

I've tried getComponent("ComboBoxID").getChildCount() but that appears to not return the correct number. Anyone know if there is a method I can use? Or maybe a function needs to be created?

EDIT - And is there a way to loop through the options and get the values like in CSJS?:

for (var i = 1; i < comboBox.options.length; i++){ pmtPlan = comboBox.options[i].value; ...

Ryan Buening
  • 1,559
  • 2
  • 22
  • 60

1 Answers1

1

Maybe this XSnippet can help: http://openntf.org/XSnippets.nsf/snippet.xsp?id=get-selectable-values-of-a-component

Instead of printing the selectable value(s) you have to count them.

Hope this helps

Sven

Sven Hasselbach
  • 10,455
  • 1
  • 18
  • 26