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
Sujata Tiwari 3Sujata Tiwari 3 

Help to create VF Page

Hi,
Since I am new to development. I have been struggling to create VF page from the past 4 days. Need your help to create a single page with different functionalities.

Requirement: Create a page with start button when the user clicks on start button, on the same page (reload the page) display login page with input text fields of Lead Object so for that, I am using standardController = Lead in my VF Page and using command button "save" to save the records.
Save the Lead records in the backend which has LastName, FirstName and Account name after this display "Product" button and hide the previous buttons and display some 3 products with the checkboxes.
If the user selects any 1 or more than one product and clicks on submit. The Page should navigate to the Lead Detail page where it has last name, first name, account name details attached to it Also the products which the user has select on the product page should also be appended in the Lead Product related list on the Lead object.
FYI: Lead and Lead Product has lookup relationship.

Many Many thanks for your help...!!