When adding a new row, I ask for customerID, once the customer ID is given, I have a relation column mapping this customerID to a customer table. I use lookup to map across a few coloumns (company name, address, contact number, email, etc…)
However, I am using googlesheets and I need this information to appear in google sheets, so I have created text fields for each of these fields and in the components I put in the lookup columns as the default value (and I hide the component, so it is automatically populated).
However, it seems that instead of pulling the information of the current working table, it seems to pull in the information of the first row of the clients table.
Something isn’t right - you’ll need to share more details of how your relation and lookups are configured.
1 Like
Sounds to me that the form is opening from a top-level view that sources the table, opposed to the details view of a specific record.
I think @ThinhDinh could be on the right path. I am using a Table Collection with the built in “Add” I am trying to create a new Invoice.
When creating the invoice I insert the customer ID.

The custID has a relation to the customer table a column also called custID.
Then I am doing lookup using that relation to pull up the ClientName, ClientAtten, etc…


However I want these to be available in the google sheet so I create a text component with the default value set to the lkupClientAtten

When I go to the Add form, the clientAtten field is defaulted to the first entry in the table (“Joe Test”, regardless of the actual custID choice I make.

no client set yet

client is set
yeah, that’s because nothing is written to the table until you submit the form, so the choices you make inside the form have no impact.
I think to get this to work you’re probably going to have to use a Custom Form.
Thanks Darren.
Understood. I think I am better off using a vlookup in the googlesheet.