How do I choose which field(s) is(are) displayed in a dropdown related to a reference field

Hi All,
I have one Google sheet, with four internal sheets.
The sheets of concern are

  1. โ€œTechniciansโ€, main fields being โ€œtech_idโ€ and โ€œtech_nameโ€.
  2. โ€œDailySheetsโ€, fields of concern are โ€œtech_idโ€ and โ€œtech_nameโ€.

โ€œtech_idโ€ in โ€œDailySheetsโ€ is a reference into the โ€œTechniciansโ€ sheet.

On the โ€œDailySheetsโ€ form, I want a dropdown of the โ€œtech_idโ€ field to display the โ€œtech_idโ€ information. Right now it displays the โ€œtech_nameโ€
On the next row I want the โ€œtech_nameโ€ to be displayed. ( fixed using โ€œLOOKUPโ€ command)

What is actually happening is that the โ€œtech_idโ€ drop down displays the โ€œtech_nameโ€ for selection and does not store the โ€œtech_idโ€ value.

How can I change the dropdown field information and store the โ€œtech_idโ€ values to the โ€œDailySheetsโ€ form?

0 4 508
4 REPLIES 4

Is DailySheets[tech_id] a Ref type column?
Which columns are set as the Key and Label columns for the Technicians table?

Is DailySheets[tech_id] a Ref type column?
Yes

Which columns are set as the Key and Label columns for the Technicians table?

Tech_ID is a key, and Tech_name is a Label.
I now have a better understanding of what label is.
Also I have more learning to do.

Thanks much

Regards Wayne

In that case, name should be showing up in the drop-down list, and id should be getting recorded in the sheet. If you want id to show up in the dropdown list, change the Label column to id.

And to pull the name in after an id is selected, use a dereference expression:

[tech_id].[tech_name]

Hi Marc
Thanks for the update. I ended up with a virtual column combining the tech_id and tech_name as my label.
It also meant that I could display one less field on the form.
Again, thanks for the pointer.

Top Labels in this Space