Confiforms: getUnselectedOptions not working correctly

Chris Cloete 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?

1 answer

1 accepted

1 vote
Answer accepted
Alex Medved _ConfiForms_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
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 August 14, 2024

It works thanks!

Like # people like this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events