I’m struggling with an issue for which I would really appreciate your help. In short
I create a pop up with custom state (modify then save) to collect information (here about building)
This popup uses option set in the dropdown (ex. in this case, year of construction before 1900, between 1900 and 1950, after 1950)
When the form is edited, it i supposed to save multiple information about a building (ex. year of construction, classification, …). This information could be modified with the modify / save custom state BUT I realized that information is erased when I fill in information for a new building and when I want to modify an old ones
Process works perfectly well when this is not a list
Would you have any explanation for this behavior ?
Hi there, @igorvetoshev… when you say the fields are erased, do you mean they aren’t showing the values that exist in the database? Also, since you mentioned lists, I assume you are talking about the dropdown fields, and if that is the case, do you have the Default value field for each dropdown element set up to show the current thing’s value for that dropdown?
Well, at first it shows values from the database (ex. age of building : less than 10 years) but when I want to save other fields afterwards (for instance, IGH classification), it erases the value age of the building in the DB. In fact, it reacts as if each time, it had completely new information coming for all fields (except for the ones without dropdown). Otherwise, I don’t have any default value set for each dropdown. Many thanks !
Sorry, but I’m still not getting it. Are you saying when you open the popup to modify an existing building that already has values in the database for the dropdown fields, those fields are being cleared when you click the modify button? If that is the case, when you open the popup, do you see the existing values from the database in the dropdown fields? If you don’t see those values, that is the issue. You have to set up the default value for each dropdown to show the existing data. If you don’t, the dropdown will be considered as empty when the modify button is clicked, and the empty value will overwrite the existing value in the database.
If what I have written above doesn’t make sense, please share a screenshot of the Appearance tab for one of your dropdown elements.