Hello,
I’m trying to create my first script. (using script runner/behaviors).
Scenario:
2 list fields. Example:
Field 1: Account Group:
Group1
Gropu2
Group2
Field 2: Account Name:
Name1
Name11
Name111
Name2
Name22
Name 3
Name 33
The idea is,
if the user selects “Group1” in the first field (account Group),
The second field must show only Name1, Name11 and Name111 as available options.
if the user selects “Group2” in the first field (account Group),
The second field must show only Name2, Name22 as available options.
if the user selects “Group3” in the first field (account Group),
The second field must show only Name3, Name33 and Name333 as available options.
Many thanks.
I think this example may help get you started - https://library.adaptavist.com/entity/set-behaviour-multi-and-single-select-options-and-value
Hi Nic,
Many thanks for your answer.
Can you please help to understand the difference between your solution
https://library.adaptavist.com/entity/set-behaviour-multi-and-single-select-options-and-value
and this one:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
They're both doing much the same thing, just with slightly different inputs.
I'd actually recommend not doing this with a Script. Your need is met by a cascading-select list, which you can do off-the-shelf without scripting.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
"I'd actually recommend not doing this with a Script" Why?
A cascading select list, do not allow me to select more than 1 option.
I need to be able to select more than 1 option in the second field.
Any other solution?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You didn't say you wanted multi-select earlier. Cascading select won't do that, so yes, use the scripts.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.