Code: Select all
-- Choice 1
-- Choice 2
-- Choice 3
Now did I found the following javascript option:
controls.FIELDCONTROL.field.list.getDisplayValues(false).length
That gives the number of items perfectly after loading.
But I use the option as validation or on change script at Choice 2 the result is always 0 because the dynamic lists are (re)fetched later.
How can I include this javascript to hide choice 3 if the list is empty?
Sjoerd