Can't access the value of input fields that are part of expandable rows

  1. My goal: An editable field in the expandable section of the row

  2. Issue: Can’t seem to access the unique id of the field for that row in quries

  3. Steps I've taken to troubleshoot: checked state etc, searched fourms, asked chatGPT, tried casting the current value to a variable first then uploading that variable but that feels like a hack

  4. Additional info: (Cloud or Self-hosted, Screenshots) Cloud

    In the screenshot I even tried making it a form to see if that would help but it does not, in the GIU to update the existing record I can either do an object or key value pair to update the notes, but that dosen’t work as I can’t seem to call the specific text input for that row…. Am i missing something obvious here?

Configure rows in the Table component | Retool Docs makes it clear how to call variables from the row, but now how to access values of inputs that might have changed in the expandable dropdown,.

1 Like

Hi there @Matthew_Carter,

So I think the answer for what you’re trying to achieved can be found in these two posts:

and

In a nutshell, you need to specify WHICH form to access, which has as index the same index for the row within which it is nested. To do that you have to:

a) refer to the selected row’s index (if the query is being triggered from outside the expandable row)

b) use i (i.e. form2[i].data) if the query is being triggered from within the expandable row

Hope this helps!

{{ edit_notes_expandable[ SelectedRow.value].value }} needed to do that, and to set a new variable SelectedRow on the focus on the editable box, because i don’t think multiselect tables set selectedRow very well

2 Likes

Thanks for sharing an update, @Matthew_Carter!