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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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 # 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
AUG Leaders

Atlassian Community Events