Forums

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

Lookup and set value from a dropdown field

Ryan Kafoor
Contributor
November 30, 2023

Hi, 

I have a dropdown field in a form and I want to lookup and set the selection from it in a field in another form. However, the rule "lookup and set" sets the id of the dropdown option instead of the label and as a solution I am additionally using a "set expression" rule with 

field=IF(EQUALS("[entry.field_where_is_set]", "1"), "actualLabel", IF(EQUALS(.... 

to set the correct label in a new field in the same form. However as per my understanding [entry.field] retrieves the data submitted.

How do I compare the value entered in a field in an EQUALS clause. For example, if 1 is entered in field1, the set expression rule should compare the entered data with "1" and assign the corresponding value to field2.

Is there maybe an easier way to set the label with the lookup rule in the first place?  

1 answer

1 accepted

0 votes
Answer accepted
Alex Medved _ConfiForms_
Community Champion
November 30, 2023

Hi @Ryan Kafoor 

The "Lookup and set" rule looks up the whole record

And you can access not only id but the labels as well by adding a .label

Alex

Ryan Kafoor
Contributor
November 30, 2023

Ah thank you. That saves me a lot of effort. 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events