Search code examples
javascriptvelo

Wix - Add row into custom collection when user is registered


When a visitor create an account into my Wix website, i want to create default data into other custom collection and reference him.

For example : When John Doe is created. I create into Table A, two row with default data and reference him.


Solution

  • You probably want to create an onMemberCreated event handler. Inside the event handler you can use the insert function to add items to a database collection.