It's not a bug. The first item in the items list is the default item and
will be selected by default when you apply the list.
but if I choose another value (with a mouse), the value still stays the same,..
Choose where? In the field's properties, or when you just make a selection in it? Are there any scripts associated with that field?
Also, your code is not entirely correct. The items should all be in the same array, not each one in a separate array (unless you want to apply export values).
So this line:
If I choose in the drop down field that is dynamically changed the value stays for example a1, no matter if I choose a2 or a3. (when I just make a selection in it)
No other scripts in that field.
Exactly where is this code placed?
Changing Another Field with Combo Box (Drop Down) Selection by Thom Parker
If this code has been placed in any of the actions for the combo box, using the "getField).value" returns the value of the combo box field before you achieve focus on the field. You should be using the "event.value" to work with the current value of the field.
The code is placed in a field itself("dynamic drop down") "Custom calculation script:".
I never used this console so have to figure this out.
That doesn't make sense. You're using the field's own calculation script to
set its own items? Of course you'll get strange behaivour. Think about it...
So it can be as you say..
Where is the best place to write scripts? I have 20 of these boxes each with a different script for its own content!
Many use the custom keystroke for the combo box and set the commit immediately option. See the linked tutorial.
You'll need to explain first what you want to achieve.
I am making an interactive dynamic questionnaire which has few calculations, and tricks to show/hide fields etc...