Bugs in Wix forms with saving data to contacts

I’ve encountered several bugs with the Wix sign-up form. If saving e-mails or phone numbers as part of your signup info, when you link those to the field in Wix Contacts as specified by the documentation, it saves them as strings instead of arrays.

This is incorrect and causes an alert when looking at the contact info.

To workaround these bugs, I decided to use Corvid to create a few lines of code that insert users and populate the contact info instead. That gives me control over correct the bug so that it passes e-mails and phones correctly as an array.

I’ve also added an AddressInput field to the form and linked it to my Google API key. This works great and it produces JSON data when the user selects an address from autocomplete.

The problem is I can’t figure out how to save the info from the JSON data into the database without having to map out every address field individually.

(Supposedly, you can just tie the AddressInput field directly to the database, but I doubt that works since the phone and e-mail didn’t work and they’re just supposed to be simple arrays.)

Anyone know of how to save the address field without parsing all the JSON components from the AddressInput box?

Is anyone else getting this to work?

I’m also experiencing inconsistent behavior when saving data with the wix-crm API.

My interpretation of the wix-crm documentation is that the default Address cannot be added or modified with createContact() as that field is not specifically listed under the Parameters found here:
https://www.wix.com/corvid/reference/wix-crm/createcontact

My workaround was to create a custom field in Wix Contacts called “UserAddress” and save the address field there as a string.

This was working for me for a while, but the API no longer seems to be saving my custom fields, despite being properly formatted in the request (at least as far as I can tell).