function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Devayani Avadhani UppuDevayani Avadhani Uppu 

How to register and login in same page in Communities, to make Logged in User owner of Captured data?

Hi All,
I have a requirement where, the Communities Registration page has fields for entering Registration information and also Account information,
-View Application Profile creation page as Guest
-Fillout the form for registration as well as inserting Account information as a Guest.
-On clicking ‘Continue’ to submit the button, page should redirect to Profile overview page
  --Here upon clicking ‘Continue’  in the background controller, sequence of steps are:
     ---Create External user
     ---Login External User
     ---Capture Account info
     ---Save captured account info to database with Logged in User as owner.
Fillout the form as guest, but save data as registered user?
How to achieve this scenario?
For now my controller is calling resisteruser action method from command button where user is registered and redirected to required page.

Any help is much appreciated!
Thanks,
Devayani.