how to save dropdown values from update list

Save dropdown values when updating a list in ChronoForms.

Overview

The dropdown field name was missing the row identifier, preventing the form from capturing updated selections.
Include the row ID in the dropdown's name attribute using a placeholder variable to ensure values are correctly submitted and saved.

Answered
Connectivity v6
se seppo 10 Jul, 2018
If needed I can provide login details to take closer look. That would likely explain much more than many lines of explanations here๐Ÿ™‚
โ€‹
I am trying to create simple create-categories -program with Connectivity. Most other parts seems to work OK, but I cannot seem to be able to update values from dropdown field when doing multiple edit, and then to press update list like the one in "Dynamic Actions Demo".
โ€‹
I have there 2 fields: one text field for category name, and a dropdown to select parent category. If I change the text field, pressing update list works as expected, values get changed. But the dropdown values does not. When debugging I found out that it does not get correct values, but I do not know how to retrieve the correct values. Also, I noticed that the name-field of the text field gets id number in parenthesis like category[8], while the name of the parent category field does not: parentcat[]. This could maybe helped if I tried to parse the id from that but seemed not to work either.
โ€‹
I am likely missing some key points on how to work with connectivity there.
he healyhatman 11 Jul, 2018
Your read data action you're using to populate the dropdown needs a return type of "array of key/value pairs"
se seppo 11 Jul, 2018
Answer
I already had there that one so it was not the cause, but I found the solution: In the name field of dropdown I didn't have the row number, but I was able to add it there by putting {var:categorieslist.row.Category.id} inside the [ ]. That at the same time made it to work correctly. Hope this helps someone with similar problem
This topic is locked and no more replies can be posted.