I want to be able to put an enquiry form on my website which, upon submission, will store those details in an Enquiries channel in EE4. No problem.
I would also like to register a new member at the same time, as I already have their name (Screen Name) and email address (Username) from the enquiry as they are compulsory fields and there'll be validation. A random string of characters can be created when the enquiry form page loads to be used as a temporary password. The user will receive an email when the enquiry form submits (from the return template) which will contain their temp password and they will be asked/forced to change the password before continuing when they next log in to the site (I'll probably use a custom member field to identify if they're still using a temp password).
I can't work out how to register a member without them submitting a second form (a Member registration form). There doesn't seem to be an EE tag that can process this if supplied with required variables.
Why? I want the enquirer to receive one email upon submission, thanking them for their enquiry and giving them login details so they can log in to the site and monitor the status/progress of their enquiry in a member area. I don't want to have to register them myself manually, or have them complete a second form.
I can think of other scenarios where this might have cropped up before ... a purchase form which allows the customer to select a checkbox to create an account at point of checkout for ease of future purchases? So this must be possible, somehow.
Any ideas?
Thanks in advance!