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
1answer
14 views

Getting Error: Content cannot be displayed: Subscript value 5 not valid. Must be between 0 and 4 When trying to create pageBlockTable from a List

Here is my .cls public List<List<String>> getObjectList() { //StructuralInfo_with_RoofSections acct; List<List<String>> arrList = new List<List<String>>(); ...
1
vote
0answers
19 views

columns in the visualforce page not displaying correctly in the Ipad [on hold]

columns in the visualforce page not displaying correctly in the Ipad.the below is the screen shot. but desired output is below, and below is the my visual force page code , &...
0
votes
1answer
18 views

Visualforce Page Not Showing on Global Action Vf Page List

I created a visualforce page: But it does not show up on the list when I try and attach it to a global action: I'm not sure why, seems simple enough and does appear in another dev environment I ...
0
votes
1answer
19 views

Header value of a standard page

This is another generic question. Can a header value be given to a Standard Salesforce page? I would not be able to write a visualforce page for it. It has to be on a standard page
1
vote
1answer
23 views

Page message show in apex page

I have a VF Page where Add button helps to add rows. If an input field value of first row matches with input field of the next or any later row's field value, system will show page message only on the ...
0
votes
3answers
53 views

How to call the Boolean variable from apex class to vf page

Could you please help me on getting the value of the boolean variable from apex controller method to VF Page. First i will tell my requirement, If the user unable to update the record "eruObj" he ...
1
vote
1answer
25 views

hyperlink a text shown in vf page leads to record detail page

I have below line from apex class that fails to redirect to a record detail page in a new tab. Can someone point out my error and suggest me a resolution please? Apex class snippet String ...
0
votes
1answer
62 views

Page loading problem in production environment [closed]

we have implemented a visualforce page that displays 500 records along with images and map it is loading properly in sandbox but in production it is loading very slow.please see my page screenshot ...
0
votes
2answers
61 views

How to solve this error “Return type of an Apex action method must be a PageReference. Found: visualforce.el.VisualforceArrayList ”?

Basically I have custom button in datail page .When i click this button,I have four picklist and checkbox in VF.I have to click atleast one picklist one checkbox .After clicking save button some ...
0
votes
0answers
17 views

How to show or hide a page based on profile in Communities

I am trying to learn about the Community Builder, and I see in the page editor we have page variations, and I can make a variant which will appear to users in a certain profile. What I would like to ...
1
vote
1answer
36 views

Replacing save button with submit for approval in the edit page

I want to replace the save button with submit for approval in an edit page of record. So that every time a user tries to edit the record then it won't be saved right away rather it will be submitted ...
1
vote
1answer
39 views

map parent Id to all its child records ( getting Error: Incompatible value type )

I have below snippet of apex class where I face below error to compile. Can someone please help? Error Incompatible value type Survey_Question_vod__c for Map> Code Snippet List<...
0
votes
2answers
39 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> <apex:...
0
votes
1answer
27 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 it?...
0
votes
1answer
29 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
66 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
41 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
14 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
19 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
55 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 pagereference('/apex/recorddetail?...
1
vote
0answers
28 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
17 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
72 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
124 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
29 views

Enable TextField if RadioButton selected option is NO [closed]

Can you please help me with the code
3
votes
1answer
34 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
40 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
49 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" value="...
0
votes
1answer
32 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() { Var.getElementById("...
3
votes
1answer
69 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
120 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 controller="...
2
votes
1answer
85 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
23 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
37 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
208 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
104 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
67 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
76 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 issue?...
0
votes
1answer
49 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
43 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" controller="...
0
votes
0answers
30 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
53 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
33 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
70 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" style="width:1300px;...
0
votes
0answers
43 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
32 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> </head&...
2
votes
1answer
58 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
31 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?