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
Vandana Rattan 4Vandana Rattan 4 

Salesforce lightning component form - Save and Resume

I am planning to build a Lightning Component form and expose it using force.com sites. The respondents should be able to save progress and resume later. can anybody give pointers how this can be achieved?

Thanks,
Vandana
GauravGargGauravGarg
Hi Vandana,

Below are the points to be considered:
1. Make a record for every form in the object. 
2. There should be a unique identifier field like email address, phone number. This field is requried. 
3. Create a widget / vf page to identify if user is new or returning user. 
4. Search the user with the unique identifier in Database, if user is new create record with "unique identifier" or load existing records and details. 
5. Provide an option to update / insert vf page. 
6. Expose only those fields which are required. 
7. If there are multiple pages in form use "page.redirect(false)" to continue using the same class for every page. 
8.. Once all the forms are filled verify it is filled using Database.saveResult[] update command, else show the error on page to rectify before user logged out. 


Thanks,
Gaurav
Skype: gaurav62990