Visualforce is the component-based user interface framework for the Force.com platform. The framework includes a tag-based markup language, similar to HTML. Each Visualforce tag corresponds to a coarse or fine-grained user interface component, such as a section of a page, or a field.

learn more… | top users | synonyms

0
votes
2answers
31 views

showing each account with number of contact,if i click on contact count it has to direct to account detail page

VF Page: <apex:page standardController="Contact" extensions="AggregateController"> <apex:form > <script> function displayErr(){ sendredirect(); } </script> ...
0
votes
1answer
12 views

Image size control in VF Page

I have below page where I want to reduce the image size but the height and width is not working here. It is not controllable and occupies the whole page area. Can someone let me know how to control ...
0
votes
1answer
27 views

Prevent Removing VF Page From Page Layout?

Admin users have the ability to modify the Page Layout and can easily remove a specific Visualforce Page from it. Is there any way to prevent this from happening? If not, what steps should I take to ...
0
votes
1answer
37 views

How to set timer on Visualforce Page [closed]

I need to set timer on Visualforce page, and after time interval a button will be displayed, can we do that in VF page ?
0
votes
0answers
29 views

Button click redirecting to login.salesforce.com instead visualforce page

I am logged in to sandbox(test.salesforce.com). We have a button(siteload) which need to redirects to a VF page. But currently upon button click it is redirecting to login.salesforce.com ?? Whats ...
0
votes
0answers
5 views

Updating Salesforce1 Navigation Menu in a Package

Is it possible to update an org's Salesforce1 Navigation Menu with a managed package? We have a VF page we want to make available on the Navigation Menu for easy access to our app. Is this something ...
0
votes
0answers
15 views

Increasing SF Standard button size

Can we increase the size of SF standard button? Please help me to resolved the issue. Thanks, Dildar Hussain
0
votes
1answer
31 views

passing id from one page to another page

<apex:commandButton value="Search" action="{!testing}"/> class public PageReference testing() { system.debug('testing'); PageReference pageref= new ...
1
vote
0answers
27 views

detail page customization with [closed]

I have a requirement like this,first i had customised view page,if i click the existing record,detail page will be showed with 4 r 5 fields in this page if i click the button full view it has to show ...
0
votes
1answer
16 views

Add custom block on each application page

I noticed that almost ALL pages in my application have "Recent Items" block Can I somehow create such "custom blocks" and add them to each page, for example under "Recent Items"?
0
votes
1answer
39 views

Show an Iframe and display a page within it, in a VF Page

I have an iframe. <iframe height="600px" id="theIframe" name="theIframe" src="" width="100%"></iframe> <a href="somelink" target="theIframe" style="white-space:normal;color: ...
1
vote
1answer
42 views

create a Visualforce page which shows a list of Accounts linked to their record pages

<apex:page standardController="Account" recordSetVar="accounts"> <apex:pageBlock > <apex:repeat var="a" value="{!accounts}" rendered="true" id="account_list"> <li> ...
-6
votes
1answer
28 views

Enable TextField if RadioButton selected option is NO [closed]

Can you please help me with the code
3
votes
1answer
31 views

System.SObjectException: SObject row was retrieved via SOQL without querying the requested field: Employee__c.Name

<apex:page standardController="Employee__c" extensions="testPage" id="p"> <apex:form id="f"> <div> <input type="radio" name="acc" value="Existing" checked="checked" ...
0
votes
1answer
35 views

Submit Form Page

We need to create a page in the Salesforce application, which will do the following things: page contains submit form, on submit event it should call external API. Depends on API response page should ...
0
votes
2answers
38 views

vf page,radio rendering

<apex:page standardController="Employee__c" extensions="testPage" tabStyle="Employee__c"> <apex:form id="frm1"> <div> <input type="radio" name="acc" checked="checked" ...
0
votes
1answer
29 views

refresh vf page,

I want to refresh my form, but this code is not working, kindly suggest me to what to do. <apex:page controller="my_controller"> <script> Function resetValue() { ...
3
votes
1answer
44 views

Assigning values for the custom setting object using visualforce page?

I am trying to insert values to the field in custom settings via visual force page Page: <apex:page controller="sample" sidebar="false" > <apex:form > <apex:pageblock > ...
0
votes
0answers
75 views

Rerender jquery accordion is not working properly

I am trying to reRender my accordion panel which is not working. On page load accordion works but on selection of object from object picklist it does not. Page Code : <apex:page ...
2
votes
1answer
51 views

display an image onchange of picklist value

i need to replace instead 'Time selected is no longer available' i want to display a cross image and instead AVAILABLE i want to display a check image. How can i achieve this? Thanks in advance. VFP ...
0
votes
1answer
45 views

Attempt to reference null exception

I am getting the above error at below line. Can someone Please let me know? It should be true or false , why null? Apex class List<Account> Accnt= [select ID , Name , ...
1
vote
1answer
22 views

On Account field value change, need address values to change also

I have a master detail relation with Account(master) and Address_vod__c (child). I am showing Account as apex input field. Now on change of Account field , address values also need to changed. Please ...
0
votes
1answer
34 views

Set values access in constructor [closed]

I have a Set populated in a method. I need the values in the contructor so that each time load those values are static. Can I do that? Method public List<SelectOption> getValue() { ...
0
votes
2answers
73 views

Id Value is not valid for standard controller

I am getting the error mentioned in subject with below code when execution runs through Else condition without DML statement. I am not getting how to change Pagereference? Apex Code AllocQ= ...
0
votes
0answers
14 views

Error: “Formula Expression is required on the action attributes” on simple VF page [duplicate]

I am trying to make a simple VF page for some configuration external to SF. The page contains a simple link to an externally hosted URL. I am facing a problem when I click on the link. It throws a ...
1
vote
2answers
69 views

Include an Apex VisualForce Page in New Task Form

I must add 5 fields on the standard task form wich will modifiy the linked account fields when a specific task is saved. How can i do that ? Can we just include a VF page in the standard form and use ...
0
votes
1answer
61 views

List<User> returns null

I have below code which compiles fine but UserTemp which is List returns null. Can someone suggest what is the root cause? SOQLs are fine to return values. Code get { terrid = [select ...
0
votes
1answer
42 views

Apex Repeat issue with Render as PDF page

I have below Page where same data repeats in multiple Pages of same PDF. But though in first page all data placed fine it's alignments changes in latter pages. Can someone please let me know the ...
0
votes
1answer
29 views

Multiple attachments creation in single email apex class

I have to create multiple attachments in a single email method. Below is my email class. Can someone help me? Apex Class Messaging.SingleEmailMessage email = new Messaging.SingleEmailMessage(); ...
1
vote
1answer
38 views

Remove leading blank page in Apex PDF page

I am getting a leading blank page in below PDF. Can someone let me know how to remove that? Apex page <apex:page renderAs="pdf" standardStylesheets="false" doctype="html-4.01-strict" ...
0
votes
0answers
29 views

Customize Search message

I have created below Page for autocomplete search on User object. I need to customize the search result message which I am unable to understand from where it is showing. Can someone help me here? ...
0
votes
1answer
35 views

Autocomplete functionality in text box by JQuery

I need to keep an input text where , when someone writes text (say initial 'a') all User's name in salesforce starting with the initial will come in drop down. Currently my code showing only logged in ...
0
votes
0answers
24 views

Increase PDF height to show in one page

I have an HTML used Apex page which has renderas PDF tag for PDF conversion. But the content is too long and coming in two pages. I need to keep it in one Page. Can someone suggest a solution? Apex ...
0
votes
1answer
35 views

font color not working for Apex renderas PDF page

I have below code where I need a rectangular box with text in white inside it. Box shows fine but text fails to read color #FFFFFF. Can someone please help? <div id="rectangle" ...
0
votes
0answers
29 views

PDF Generation failed error for HTML Apex page

I have below HTML used apex page which encounters PDF Generation failed error. Can someone help me here? Apex Page <apex:page showHeader="false" standardStylesheets="false" sidebar="false" ...
0
votes
1answer
30 views

video not displaying on the the vfpage

Video not display on the page <apex:page docType="html-5.0"> <head> <script src="//api.html5media.info/1.1.8/html5media.min.js"></script> ...
2
votes
1answer
28 views

standardStylesheets attribute doesn't work properly

I can't get it work as it should. The code rendered even for an empty page: <apex:page standardStylesheets="false" standardController="Opportunity"> </apex:page> Includes: <link ...
0
votes
2answers
29 views

Fetch User input value to class [closed]

I want to have an User input value from Apex page into class and put it in a string. Can someone show me the way to do it?
0
votes
1answer
34 views

Change Salesforce Error Messages?

Currently when Apex code on a VisualForce page throws an exception the user is shown what line of code threw the exception and some other information. I want to change this to show a custom error ...
0
votes
1answer
13 views

Difference fields are displyed before and after creation

In lead object , when I click new to create a new record it calls a vf page (handled by custom button by calling a vf page in 'New ' button). At the time of creation , in one section it is showing 10 ...
0
votes
1answer
44 views

Why are my HTML tables and CSS missing from Sandbox to Production on VisualForce Page

My HTML table components are missing in my production environment. Is there anything I have to do to make these visible? Everything is visible and working in sandbox. Sandbox Production
0
votes
1answer
237 views

Fail to send email by utility class

I have below utility class which throws error as this in debug log. Error INVALID_FIELD_WHEN_USING_TEMPLATE: When a template is specified, the plain text body, html body, subject, charset, and ...
0
votes
1answer
60 views

Override the base target=“_top” for link in visualforce page

There are lot of links in my page. Of which most of them are to be opened in the same tab so, i have set the base target="_top" but For particular columns of link i need to open them in new tab. ...
0
votes
1answer
57 views

Display warning message in page

I need to know how to be able to display the following warining message in salesforce page: There is an existing Merchant: corresponding account.Id for this Lead: corresponding objLead.Id_ in ...
0
votes
2answers
46 views

Display warning messageq

I would like to know how to be able to display a warning message in a page. I have created my own custom visual force page: <apex:page standardController="Lead" ...
2
votes
1answer
65 views

How create custom login page without check a security token

I need created custom login page for my mobile app without using token. I considered the following solutions: ...
-2
votes
1answer
42 views

vf page color setting

I have below page code where I need to color the whole page with color code #FFFECC. Can someone please help? Page: <apex:page Controller="test_k" showHeader="false" sidebar="false" > ...
1
vote
2answers
27 views

Embed a page on a standard built-In object layout

I have a page in a managed package and I want to embed it within the standard lead detail view. One way to do this is something like this (taken from here): From the object management settings for ...
0
votes
0answers
23 views

Rendering PDF from a picklist and button

So I'm made a VF page, that displays a record accordingly. I have another list of related other records that display on the picklist off to the side. Is there a way I can program a button that queries ...
0
votes
0answers
36 views

Select option in pie chart color

I have a requirement to show a color picker by pie chart approach where I need to capture the selected color option by logged in user. I have below code snippet but how to capture user click on a ...