I want to create a form for the logged-in user to update information in the CRM.
The problem is that with “wixCRM.createContact”, if I put the email address to refresh the data in the CRM, there is an error because the address is already updated. How to change the user who is online going through a custom form?
Knowing that I want to integrate customFields at the time of the update.
Do you have any code examples that work? I am looking for a solution for several days and my tests remain unfinished …
I put the function in an event “when we click on the button” but I do not see any event in the forms during the treatment … I am very interested if you can help me!
Hi,
Currently, there is no way to update contact info for logged in members with wix code.
The way to update contact info is to install the login members app and get a member info page. Notice that there is no option for custom fields there yet.
We are planning to allow this via wix code, but we have security concerns to consider.
So, could you please explain when custom fields can be used and how to use them? I find this very confusing and the wix code manual is not really helping.
Say I just triggered users to register their e-mail and password and now - on a seperate page - I want their contact information to be added to the wix CRM, the following code does not seem to work:
import wixCRM from ‘wix-crm’; import wixLocation from ‘wix-location’