drop-down list with available items only

In my app, I have a table named 'Agendas Disponรญveis' that is categorized as 'read-only'. It serves as the data source for a dropdown list in the main table 'Input Dados'. The user selects a value from this list, and I would like that once they make a selection, that option is no longer available in the dropdown for their next response."

Solved Solved
0 5 126
1 ACCEPTED SOLUTION

You can use:

Agendas Disponiveis[Agende aqui sua descarga]
- INPUT DADOS[Agende aqui sua descarga]

View solution in original post

5 REPLIES 5

Please show the columns configuration of your form's table. 

primary table:

barbarascristin_0-1690371887059.png

Table in which it is referenced:

barbarascristin_1-1690371988375.png

Expression to avoid duplicating identical answers in the dropdown list:

barbarascristin_2-1690372059631.png

My databases consist of 'Available Schedules,' which contains pre-defined schedules for appointments, 'Input Data,' where the data is stored and where 'Available Schedules' is referenced to display the available schedules in a dropdown list, and it should be a unique value. 'Source' is a table referenced in 'Input Data,' showing the origins of each trailer, and 'Carrier' is also a table referenced in 'Input Data,' displayed in a dropdown list, and it's not a unique value.

barbarascristin_4-1690372292080.png

My problem is that I would like only the schedules that have not been booked to appear in my dropdown list, as they are being selected;

 

 

 

 

 

 

 

 

Thanks. Do you have only one slot available per appointment? or can two different users for example book the same schedule? 

One per query, I developed this expression, and apparently, it served me well :))

SELECT(Agendas Disponiveis[Agende aqui sua descarga], NOT(IN([Agende aqui sua descarga], INPUT DADOS [Agende aqui sua descarga])))

 

You can use:

Agendas Disponiveis[Agende aqui sua descarga]
- INPUT DADOS[Agende aqui sua descarga]

Top Labels in this Space