Salesforce Visualforce Pages - Salesforce

What Is Salesforce Visualforce Pages?

Visualforce pages are webpages that fit to Salesforce. These webpages are formed using a unique tag-based Mark-up language. It is alike to HTML but it's primary use is to access, display and update the organization’s data. The page is retrieved by using a URL alike to that of a traditional webserver page.

Each tag in visual force language look like to some user interface component like section of a page, a list view or a field of an object.

Fascinatingly, it can be simply mixed up with HTML markup, CSS style and Java libraries, etc.

Creating a Visualforce Page

Navigate to the link developer console → File → New → Visualforce page. The new window unlocks asking for a page name. Let us now call it HelloworldPage. Let us now write the code as shown in the resulting diagram.

vf_page_1

Click Save. Then, click on Preview. This unlocks a new webpage displaying the result as shown in the resulting screenshot.

vf_page_2

Adding components

In this section, we will learn how to add components to a program that is previously created. Let us add some user interface components to the program created above. We add a block and a section in that block by using the resulting code.

vf_page_3

On showing the page, we get the resulting output.

vf_page_4

Setting Preferences

We can set the numerous settings for easy navigation by going to Help → Preferences.

vf_page_5

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

Salesforce Topics