May 2019
Intermediate to advanced
546 pages
12h 41m
English
The following code snippet helps in building AddNewMovie Visualforce page:
<apex:page standardController="Movie__c" lightningStylesheets="true" extensions="MovieExtension"> <!-- some extra css to make it nice and neat --> <style type="text/css"> .txaDescription { width: 100%; resize: none; } .pnlCenter{ text-align: center; } </style> <apex:outputPanel> <apex:form> <apex:pageMessages /> <apex:pageBlock title="{!Movie__c.Name}"> <!-- you can separate your fields in 2 columns with the attribute columns --> <apex:pageBlockSection title="Movie Information" columns="2"> <apex:pageBlockSectionItem> <apex:outputLabel value="{!$ObjectType.Movie__c.fields.Name.Label}" /> <apex:inputField value="{!Movie__c.Name}" /> </apex:pageBlockSectionItem> ...Read now
Unlock full access