form.setData not working on Android

I've been using form.setData(item) (item being from a listCollection) to set the values in a form on a modal to edit an item. This is done in a script on a press event handler before opening the modal. This was working great until a week or 2 ago when it stopped filling the form values on my android phone. When I press an item on iPhone or in the preview on my computer, it loads the form with the item values and opens the modal just fine, but only on android it doesn't pre-load any of the form values. Again, this just stopped working a week or two ago. Anyone else run into this bug?

I was able to get around it temporarily by setting the value of each form field individually, but it would be nice to use form.setData to set all the fields again.

1 Like

Hi @Sam_Zimmer Thanks for reaching out! I'll report this to our team internally. Can you share a screenshot of the event handler?

Ah, actually, no need to send a screenshot! I'm able to reproduce this as well now :thinking: Will follow up when I get an update internally

@Sam_Zimmer I believe this is fixed now :crossed_fingers: Let me know if it's still not working

Still not working here...

Just blank when I click to edit one of the transactions

@Tess I have also just noticed that referencing the form for retrieving data (via has also stopped working. I've had to change any instances references in queries to the field itself instead of using the entire form data element. i.e. something like this:
Screenshot 2023-09-30 200717
returns an error with no rows. So it now must be this:
Screenshot 2023-09-30 201245

Not a huge deal on single fields, but when I try to grab the entire form's data, I've now had to call each field invididually...doing this no longer works:
Screenshot 2023-09-30 201332

Hi Sam_Zimmer Thanks for letting us know :disappointed: I let the team know that it's still not working & also reported the issue with inserts +

I will keep you posted as I hear updates or follow up questions!