ContactInfo ADDRESS (Street, City, State, Zip)

Thank you for your time, I hope someone can help with this as Wix customer support will not tell me, they tell me to wait for a forum response.

The help files show ContactInfo {firstName: string, lastName: string, picture: string, emails: Array, loginEmail: string, phones: Array, labels: Array, language: string, customFields: string | number | Date}
But how do we write to the ADDRESS fields (Street, City, State, Zip, Country)? are they labels or custom fields? or part of the ContactInfo?
I have tried every possible guess, including exporting contacts to csv to see what Wix calls them - but nothing works.

What are the field names called to write to??

import wixUsers from ‘wix-users’;
import wixLocation from ‘wix-location’;

$w.onReady( function () {
$w(‘#submitB’).onClick( () => {

let firstName = $w(‘#firstName’).value
let lastName = $w(‘#lastName’).value
let address = $w(‘#address’).value
let city = $w(‘#city’).value
let state = $w(‘#dropdownState’).value
let zip = $w(‘#zip’).value
let phone = $w(‘#phone’).value
let email = $w(‘#email’).value
let password = $w(‘#password’).value

wixUsers.register(email, password, {
contactInfo: {
“firstName”: firstName,
“lastName”: lastName,
“Address”: address,
“City”: city,
“State”: state,
“Zip”: zip,
“Phones”: [phone]
}
} )

.then( (result) => {
let status = result.status; // “Active”
let user = result.user;

  wixLocation.to("/plans-pricing"); 

})

// this.close();
});
});

1 Like

@yisrael-wix Could you provides an answer to this topic?

I’m encountering exactly the same issue and there is nothing in the doc that explain how to work with this field.

1 Like

Me too!
I´m fighting with this issue since days, because to use a custom field in crm contacts is no option (have to create invoices and Wix Invoice uses the default address fields!)
I assume that GOB will close this post because it´s “old” (will be the 3rd closed post to this issue since yesterday…) but the missing address information in the ContactInfo object is still a problem…
Thanks for any assistance!
Tom

1 Like

This has already been answered on this previous post here.
https://www.wix.com/corvid/forum/community-discussion/member-s-collection-address%3Fpage%3D1%26dl%3D5ce7fb33227f2d0016962c8b%252F5ce333e054670c00a4d64602%252F2

Which was also in the reply that I put on another post, again from 2018, that you obviously didn’t read or look at.
https://www.wix.com/corvid/forum/community-discussion/custom-registration-and-contact-info

Old post from 2018 reappearing, closed.

This previous forum post will help too.
https://www.wix.com/corvid/forum/community-discussion/member-s-collection-address%3Fpage%3D1%26dl%3D5ce7fb33227f2d0016962c8b%252F5ce333e054670c00a4d64602%252F2