How To Create Visualforce Page | Techila
1035
single,single-post,postid-1035,single-format-standard,ajax_updown_fade,page_not_loaded,,qode_grid_1300,footer_responsive_adv,hide_top_bar_on_mobile_header,qode-content-sidebar-responsive,qode-theme-ver-9.4.2,bridge,wpb-js-composer js-comp-ver-4.12,vc_responsive
 

How To Create Visualforce Page

CREATE VISUALFORCE PAGE

How To Create Visualforce Page

 

1

https://Salesforce_instance/apex/myNewPageName

For example, if you want to create a page called “HelloWorld” and your Salesforce organization uses na3.salesforce.com, enter http://na3.salesforce.com/apex/HelloWorld.

Because the page does not yet exist, you are directed to an intermediary page from which you can create your new page.

Click Create Page <myNewPageName> to create it automatically.

Creating A Visualforce Page

You now have a Visualforce page that includes default text. To edit your new page, click the Page Editor bar that appears at the bottom of the browser. It expands to show you the following Visualforce markup:

<apex:page>

<!– Begin Default Content REMOVE THIS –>

<h1>Congratulations</h1>

This is your new Apex Page: HelloWorld

<!– End Default Content REMOVE THIS –>

</apex:page>

This default markup includes the only required tag for any page— the <apex:page> tag that begins and ends any page markup. Embedded within the start and close <apex:page> tags is plain text, some of which is formatted with a standard HTML tag, <h1>.

As long as you keep the required <apex:page> tag you can add as much plain text or valid HTML to this page as you want. For example, after entering the following code and clicking Save in the Page Editor, the page displays the text “Hello World!” in bold:

<apex:page>

<b>Hello World!</b>

</apex:page>

 

Courtesy:-https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_quick_start_hello_world.htm

“Know more about Salesforce Consulting at Techila”

Author: techila

No Comments

Post A Comment