Okay - I have a very simple popup form that correctly loads data into the popup element from a repeating group item when that item is clicked.
In the form I use a simple Cancel button that just hides the popup - not changing any data in the repeating group item.
When I click the repeating group item a second time - the items content does NOT over-write the pop-up form element. Whatever was there previously stays there!!!
I again click the repeating group item - which should reload the data into the popup - the debugger shows this - but when the pop-up appears it has the PREVIOUSLY edited text - that is never overwritten?
What you want to do is reset the popup (group > reset data) in that cancel workflow in addition to closing the popup, this will allow the initial content to reset. What is happening is that you’ve now overridden the initial content by typing something into the input. Hiding the popup element doesn’t reset it, you have to force that.
Yes, you are sending data to the popup every time you open it, but it’s the same data, so it’s not going to reset (and whether that’s right or wrong, I don’t know), but I’m guessing when you select a different RG item, it properly loads, and then clicking back on the other RG item, it loads it properly as well without the unsaved content.
Just to save you some time @palanzo - She will need access to your app editor so that she can take a look under the hood. Creating an account in the app won’t allow her to fix anything. Just sayin’
@palanzo If you’re on the professional plan, you can add me as a collaborator which will allow you to keep the app private (and you can revoke my access whenever), or you can make the app public with read access only and I’ll still be able to see what’s going on and report my findings but not actually change anything.
I just took a look and am unable to reproduce your issues. Updating, not updating, closing, opening… all seems to be working as it should. Not seeing anything weird. Are you still getting blank initial content views?
If I enter text and click out of the input and then click cancel…and I do all of this quickly… reopening the popup shows an empty input box. I can cancel again and show it again and it will load fine.
But if I do the above and give it a few seconds and then click cancel, it behaves normally.
If I enter text without clicking out of the input and then click cancel, no matter what speed, it’s fine.
Seems like something needs time to load or update once a change has been recognized in the input (which, like we’ve mentioned before, only gets recognized after clicking out).
Thanks… yes it’s timing related…
BTW → any guidance as to how I can have a user upload and then crop a photo to an exact size? When I use stretch or other methods the photo’s seem to get distorted. I’m using the generic photo uploaded to start… processed with imgx plugin and resized - but it still seems to distort…