Visualforce is Salesforce.com's HTML template technology, allowing dynamic creation of web pages (as well as other files) utilising Apex logic and SOQL queries to replace merge fields with content.

learn more… | top users | synonyms (2)

6
votes
0answers
27 views

API 31.0 breaking change in namespaced Visualforce $Setup global

Has anyone encountered this problem when evaluating $Setup global variable in Visualforce? If, in an organization with a namespace prefix, I have a hierarchy Custom Setting like the following, it ...
1
vote
1answer
23 views

Validation fails, but no exception generated

I have a VF page for input of a custom object. As part of the object, I have validation rules. My problem is that a failing validation fails to generate an exception. It also fails to create the row ...
0
votes
1answer
13 views

Display the Field of a lookup object in PageBlockTable, Visualforce

I have two objects Fruit__c and Apple__c. Apple__C has a lookup to Fruit__c. Now, I am writing a Visualforce page, where in the page block table I want the columns to be Fruit__c.Name ...
0
votes
0answers
14 views

How to upload and download file in salesforce? [on hold]

How to upload and download file like PDF,Word Document..ect in salesforce with sample of come. please guid me if any have idea about this...
1
vote
1answer
8 views

Task related List Visual Force

I´ve added the "Open activities" related list in my visual force page. this is part of page: <apex:page standardController="Opportunity" extensions="leadViewController"> <apex:detail ...
1
vote
0answers
13 views

Export Test Execution result to excel through developer console/ SFDC org

I just did a Run all test. I want to export the results (all failures and successes) into an excel sheet. is it possible? Thanks.
0
votes
0answers
20 views

How to schedule a Batch class Dynamically From visualforce page using Dynamic CRON Expression? [on hold]

How to schedule my batch class based on frequency Dynamically? Hi, I have one frequency picklist field.I this picklist field values are Weekly,Monthly by day,Monthly by date and custom.When ...
0
votes
0answers
7 views

Probability and forecasting fields are not filling by default in Custom Opportunity VF page..?

In Custom VF Page for Opportunity, when selecting Stage field.. Probability and forecasting fields are not filling by default. In Standard Opportunity page, if we select Stage field.. by default ...
3
votes
0answers
17 views

Is there a way to delete record on Salesforce 1(Mobile)

Is there a way to delete a record on Salesforce 1 platform. I know there is a way navigate to sObject but if please someone could help to delete a record. Currently what i am doing to delete a record ...
0
votes
1answer
19 views

How to fix the Stored xss error in salesforce

Here is my requirement. in my visual force page i'm getting stored xss error in escape="false". <apex:outputText value="{!wrk.html_description__c}" escape="false"> </apex:outputText>
-1
votes
0answers
11 views

regarding mutiple objects [on hold]

Creating a Visualforce page which contains four sections on the page i.e. Account information, Contact information and Opportunity information. In fourth section add Google map so that user can find ...
1
vote
2answers
30 views

Display the fields properly in output panel while using actionRegion

I am using actionRegion for to show/hide the fields based upon picklist in Opportunity. When i am selecting the Stage picklist value is Closed Lost, then 4 text fields will be displays. It works fine. ...
1
vote
1answer
30 views

Want to display values in proper order on PDF Document

I am getting the Equipment/Service Level Detail Table values but it"s not proper order. Want to display X1,X2,X3,Y1,Y2,Y3....here displaying X1,X2,Y1,X3,Y2,Y3 in PDF , could you help me? VF page : ...
1
vote
1answer
27 views

Passing the ID with the VF page URL in Global Actions

In my sfdc 1 i have added a Global Actions to and calling the Vf page. The scenario is : go to all contact tab then select a contact and on that contact select a public action button which we created ...
1
vote
1answer
25 views

How to use multiple pageblock in single form or page in visualforce page

I want to use multiple page blocks in single page or form. I tried it but it's not working properly. When I'm having only one page block, it's working properly. Can anyone give any suggestion for ...
1
vote
1answer
23 views

Display error or warning message without ApexPages using Global Component

I have a simple form , which has a output panel and pageMessage inside it . <apex:form> <apex:outputPanel id="errorPanel"> <apex:message id="msg" /> ...
1
vote
0answers
26 views

Is there any different calling JSON directly from visualforce page and javascript Static Resource?

I create one javascript file and call JSON from there.Before I use JSON, I use hardcode data and it works.But I try to load data using $JSON, somehow it does not works.Check the code below ...
1
vote
2answers
35 views

Change field visibility based on Opportunity picklist value

When i select stage picklist value as "Closed Lost" in Opportunity, then i want show text fields. By-default these text fields will be hide. I tried so many ways but i didn't get. tried using ...
0
votes
2answers
20 views

SetTargetObjectID dynamically

I have written a class that sends an email and I have referenced the object id (opportunity) in the URI for the VP page. So how can I make a variable that grabs that id so I can use it in my sendMail ...
1
vote
0answers
23 views

Conditional Custom Buttons

I was just asked to combine 2 buttons that open 2 separate visual force pages. So my idea was to create one button(obviously). Is it possible to after that ask the user which record they want to ...
5
votes
1answer
40 views

apex:dynamicComponent - Correct type of a component

Situation I want to implement a dynamic, dynamic custom component in visualforce and apex. Therefore I created a new component: <apex:component controller="SidebarController"> ...
0
votes
2answers
50 views

Visualforce Controller: Sectionwise display of multiple accounts and its corresponding contacts in a Page

I am new to Visuaforce, and realize it might be a basic question. ANy reference or guidance would be helpful...THanks in advance. My requirement is-----> On a page i want a Section wise display of ...
3
votes
1answer
20 views

How to render a VisualForce email template to string

Is there a way, using Apex, to trigger the rendering of a VisualForce email template and capture the result as a string? This would be used to set the HTML Body of an email to be sent using an ...
2
votes
1answer
36 views

New Page not opening with the help of pagereference

I have a html input button which calls a javascript function in VF page. After execution of javascript function i want to open a detail page of an account in a new apex window. for that i am writing ...
1
vote
1answer
19 views

Dynamic Text when Account Detail Page loads

I want to decide to show/hide a particular text when an Account detail page is loaded, based on the user logged in. How can I achieve this i.e. making a decision when the account detail page is ...
1
vote
1answer
33 views

Master field editable on VF page (reparent detail to new master)

I am trying to create a standard clone button type functionality for a custom object which has a master detail relationship with Account and lookup with Contact. On click on the custom button a vf ...
1
vote
1answer
22 views

Seach Option in header. How to handle it?

This is the situation: I have 3 pages, Home/Search/Post I have a header and the search box is in that header which is component. Controller for that header component is SearchController. So first ...
0
votes
0answers
42 views

Visualforce Controller : Can we Save value of a Outputfield made editable using inlineEditSupport [on hold]

My Question was I was working on objects related by lookup relationship.I was displaying the data from them using component onto a single page and made one of the field on child object as ...
3
votes
1answer
33 views

google map not showing on Visualforce page

I am trying a very simple exercise to display a google map on visualforce page. But nothing is showing up. Below is my page code - <apex:page controller="SampleLocation"> <head> ...
1
vote
3answers
24 views

How to show only user debug entries in the Debug Log view?

I am trying to setup filters on the Debug Logs page so that only entries caused by System.debug('foo') in my code show up. Is there a way to do that?
1
vote
0answers
13 views

HTML5 Required Elements Act Differently with Re-Render

This issue may be linked to this post, in which case I think the bug wasn't fully fixed...but hopefully it's more simple than that... I have the example below - a basic input form using HTML5 error ...
1
vote
2answers
27 views

Get the SObjectType of a record in Visualforce - is it possible?

I have a generic VF component that renders Action Links for records of arbitrary SObject types. Iterating over SObjects in variable record I would like to use such a generic expression in my page: ...
2
votes
0answers
32 views

my visual force pagination doesn't work

i have created a visualforce page with page navigation. I am able to shows the records but when i click next nothing happen. below is my controller: public class sampleOutput5Cases { private ...
2
votes
4answers
130 views

Page cannot use jQuery Plugin as it's registered with $ from Sidebar component

This again and again is a reason why jQuery-based pages in my apps fail to render at some customers but not at all customers... There must be a solution to this. Or at least others who share the pain ...
1
vote
2answers
56 views

Override tab to open a visualforce page?

I have a custom tab . What I want to do is : when I click on that tab, it should open a VF page that I made. How can I do that ?
2
votes
1answer
21 views

Visualforce how to onSubmit via controller return error or true

I currently have a Visualforce page where a User can tick selection boxes in order to edit multiple License Voucher # Object fields as shown below. I would like to perform a field check for empty ...
1
vote
1answer
36 views

Adding a new row to a pageblock table upon event in another table

I want to add new row along with name value to table B when a name value is entered in a table A . It works fine when we update the value and focus on some where else other than Add row button in ...
3
votes
2answers
51 views

Pass Java Script value into Apex:Input field not working

When I try to pass Java Script value into Apex:input filed no value is passed. But it works in regular html input field. Please help! . Below is my code. Which as both Apex:input & just input. ...
0
votes
2answers
33 views

Access data in Visualforce/Formula fields through Custom Junction Object [duplicate]

I have three custom objects: Entity, Residency, and Address. Entity and Address have a many-to-many relationship; Residency is the junction object (two master-detail relationships.). Is it possible ...
4
votes
1answer
27 views

How to render Multiple PDFs from a single Visualforce page?

I working on a visualforce page (running a tabular report) with a table (13 columns) and am rendering a PDF as well for this. Firstly, all the columns are not fitting in a single PDF. Secondly, how ...
3
votes
1answer
22 views

chatter feed on salesforce1 page without standard stylesheet

I have a VF page which is marked for mobile devices and has, docType="html-5.0" standardStylesheets="false" showHeader="false" sidebar="false" I want to show chatter feed on this page. When I use on ...
0
votes
2answers
25 views

Test Class for a VF Page Controller w/ Void Method [closed]

Trying to write a test class for below method. Essentially this method will fire "onchange" on the VF page to rerender a new query and new picklist. public void calculateAwards(){ awards = new ...
1
vote
1answer
31 views

Modify custom object page to show all records from parent client

I have a custom object (Service_Orders__c) in my Customer Portal which allows customers to create/view orders they have made. As these users belong to a parent client, is it possible to modify the ...
1
vote
2answers
26 views

Dependent Picklists - StyleClass attribute doesn't work

Situation I've implemented a dependent and a controlling picklist field. <apex:inputField value="control__c" styleClass="abc" /> <apex:inputField value="dependent__c" styleClass="def" /> ...
4
votes
3answers
94 views

What is View state in VF Page

What is View State in VisualForce page? I would like to know why we are using View state in VF page. Please help me .
1
vote
0answers
21 views

Dependent Picklists - Javascript callback

Situation Dependent Picklist fields are implemented in SFDC using a JS file called "Picklist.js". This script seems responsible for adding or removing <select> tags in visualforce pages. ...
0
votes
1answer
48 views

Add an already existing record to a related list

Basically, we have records that are Unassigned. We would like to be able to assign them to an Account. These records are displayed in a related list on the Account page. Of course, a new button is ...
0
votes
2answers
30 views

How do I navigate to the create/new page via Visualforce

I have some apex validation where if a user forgets to enter something in a related list, the system will give them a pageMessage saying that they need to enter a row into that list. We want to ...
-1
votes
0answers
47 views

Second pageblock doesn't work in a Visualforce page with two pageblocks

I used two pageblock in single vf page both are having some function .first block working in perfectly second block not respond but if i remove first block second working very perfect with out change ...
0
votes
1answer
15 views

Performing an Upsert in PageReferenceSave - Not updating Item.ID for Use In UnitTest

I have a test that creates a new record in our custom table - Service Offered. Whe I call my controller and save - It creates/updates the record correctly, and in my class the Debug.Assert gives me ...