Reposting here from yesterday as I thought it was resolved but not so. I have made some change per some suggestions on the forum but same problem at this stage.
Wappler: 6.5.2
Node JS
- I have a modal, that on open calls an API to get a list of medical conditions. This is not connected to a a form in the modal, it runs as a seperate API action.
- This list populates a select element (this works fine, with UUID as value and a name)
- The select element has a “none” option hard coded item (though its not selected by default)
- The select has a dmx-bind:value to a UUID which it gets from another endpoint. This endpoint is called when the page loads (so way before the modal is opened by the user)
- When opening the modal for the first time, the correct value is selected and shown in the select dropdown.
- When closing the modal and opening it again, or resetting the form (created a test button on the modal), the select dropdown value is set to “None” instead of the correct value.
More info
I think this might be a bug with setting the default “selected” option, but if anyone has any guidance that would be awesome. I think the expected behaviour should be to re-select the correct dmx-bind:value each time the modal is opened / form is reset. As I understand it, the selected default value should be that from the dmx-bind:value. If I change the selection, hit reset form, it goes back to the dmx-bind:value.
Doing some more research on this, when the item appears to be selected per screenshot below, the item isn’t actually set to “selected” in the HTMl code (see screenshots below).
Any help would be appreciated thanks 


