Automatically account create on user sign up

I want to create contact on user signup, is there a way to do that or i have to write custom code

This is a part of standard kindly signup first and check.

if not working then write custom script for that.

frappe.core.doctype.user.user

frappe.ui.form.on(“User”, {
onload: function(frm) {
if (frm.doc.__islocal) {
frappe.call({
method: “frappe.client.insert”,
args: {
doctype: “Contact”,

Simply allow the sign up option via your customer portal.

https://docs.erpnext.com/docs/v13/user/manual/en/customer-portal/sign-up

Contact with the associated email ID should be created automatically and assigned a role you allowed on signup.

1 Like