Select not honouring the from data key set

  1. My goal: Create an edit data form with a lookup of site_id based on a site list
  2. Issue: the select dropdown isn't honouring the data key set.
  3. Steps I've taken to troubleshoot: verified all possible references.
  4. Additional info: (Self-hosted)

The site list contains as an example 1. Site A, 2. Site B I then have a list of multiple links for each site with a edit button. When I reference the site_id's the select is not populated in the edit.

The form is set to reference the table of links, the table contains a site_id and id. The id is the key for the links where the site_id is what I'm trying to reference ot insert.



interesting observation is when I hover over the default value {{ table2.selectedRow.site_id }} it shows the correct id but in the mapped values the id is always 1

Hi @kowuspelser, just to clarify, is the issue that the form isn't prepopulating with the site name in the select component? You are still able to select a site name from the list, correct?

The reason this could happen is if the default site_id value does not match up with a site_name in query12. Is query12 the same data that is in table2? If it is a different query, could I see an example of it to try and reproduce this?

As to your second post, hovering over the mapped options for your select component (ex: item.site_name) will show the value for the first option rather than the one you currently have selected. That doesn't mean it's the default value or anything.