Let's have a look at the following steps. We will build a little form and save the movie that we added in our form.
- Go to your Developer Console and create a new page with the name AddNewMovie. Assign the standard controller Movie__c and add the Lightning stylesheets to your page.
- If you want to see the Lightning stylesheet, you need to enable your view in Lightning Experience, not in Salesforce Classic.
- Next, you will add some additional tags to your form (use the apex:form tag to create a form).
- First of all, we want to display error messages or confirm messages. You use the apex:pageMessages tag for that.
- Second, you will add some fields to your form. To add a field, you can group the fields in apex:pageblock, apex:pageblockSection ...