I’m currently having an issue trying to reset data on a popup. I call the popup via an icon from a repeating group and populate the data in the popup successfully.
Here is my challenge I am trying to reset the data on just one input and not the entire popup. As a test I have successfully reset the data on the entire popup. With that said, I have been unsuccessful trying to target just one input on the popup to reset. I have added a group to the popup and added the one input to that group along with the button to the workflow that I’m looking to reset. For whatever reason the group/input just won’t reset the data.
When I select the “Add location” button it takes me to another popup to select the location using a map. This is where the maps postlocation is set via lon and lat coordinates.
My original thought would be that when I edit the data the app would pull the existing source location from the database (since it was already found) and then by selecting the “Add location” button again it would allow me to reset or update the new location. How it works now is that when I select a new location the old location seems to stay populated.
Your input’s placeholder is set to the custom state postloacation’s value, so will always show that value when it’s displayed until something else is typed into it.
Resetting a group’s data doesn’t affect custom states, so if you want to change what the placeholder says you’ll need to clear the custom state ‘postlocation’
Just so were clear, when I select the edit button, the data is populated in all the fields based on the database and not the state (Even the location field that I’m struggling with). When I then go to select the add new location site to make a new call for a new location based on state that is when the system just won’t overwrite the data being stored in the location field by the initial call to retrieve the data.