Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Confiforms: getUnselectedOptions not working correctly

Chris Cloete
Contributor
August 13, 2024

I want to show the user the options that has not been selected from a smart field (dropdown, multiselect, checkbox etc). 

The configuration seems not to be configured correctly: 

Field1 = Smart Checkbox (list of values)

Field2 = Smart Checkbox (list of values)

I have a Rule to set Field2 = Field.UnselectedValues. By making use of Set Value of change of Field 1. This is the action: Field2=[entry.id.getUnselectedOptions(Field1)], this seems to exclude the first and last options of the smart field. Meaning that it is not fuctioning correctly. Refer to the following image:
Knipsel.PNG

This is not a limitation on Smart Checkbox only, but also with Smart Dropdown, mutliselect etc.

Am I missing something?

2 answers

1 accepted

1 vote
Answer accepted
Alex Medved _ConfiForms_
Community Champion
August 14, 2024

Hi @Chris Cloete 

Please change the expression to be

Field2=[entry._func.getUnselectedOptions(Field1).asList]

The field expects a CSV list of values (options)

And for new records there is no value for the "id" field, so it is safer to use the _func bridge

Alex 

Chris Cloete
Contributor
August 14, 2024

It works thanks!

Like • 2 people like this
0 votes
muskanbhutto118
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 16, 2024

Thanks work

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, confluence, loom, atlassian intelligence, ai notes, ai-powered meeting notes, atlassian community events, ace, confluence ai, loom ai integration, ai note-taking, atlassian ai features, team '25, atlassian live learning, confluence automation

Unlock AI-powered meeting notes: Join our live learning session! 📹

Did you catch the news at Team ‘25? With Loom, Confluence, Atlassian Intelligence, & even Jira 👀, you won’t have to worry about taking meeting notes again… unless you want to. Join us to explore the beta & discover a new way to boost meeting productivity.

Register today!
AUG Leaders

Atlassian Community Events