Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [visualforce]

Visualforce relates to questions where the Visualforce language or framework are concerned. This is primarily VF pages, components, PDF rendering, and email templates. This would only cross-over to Lightning where Lightning Out (Lightning for VF) or VF pages using SLDS or being used in LEX. Where a question relates to Apex invoked as part of a VF page, this tag would also be appropriate.

3
votes
1answer
3k views

Using the apex:page action attribute in embedded layouts

Anyone aware of why the initializeActivity method would not be called (when embedded in a layout)? calling javascript throws a cross domain error. I really dont want to have to make a callout to make ...
4
votes
1answer
1k views

PageLayouts and Fieldsets in APEX

We've repeatedly tried to figure out ways to display a Pagelayout and/or FieldSet settings in our custom VF pages without having to rely on the standard controller. For example to display a fieldset ...
8
votes
4answers
1k views

Branded Visualforce Page

I am stuck with one scenario here, I have implemented one Visualforce page, which will be part of a Managed Package and will be represented on a Force.com website. As this package can be used by ...
7
votes
1answer
4k views

Handling Record Errors in a Batch Process

How does one handle individual record errors in a Batch Process? Tried the following example below, but once I iterate through wlist after the batch has completed (checking the job status through an ...
10
votes
5answers
1k views

RemoteAction Insert Error: “Please provide an id or sobjectType value”

I posted this to Twitter a couple of times but I'm still stumped. I have an Apex class called "TestRemoteActionClass" with a method marked as a @RemoteAction that looks something like this: @...
6
votes
7answers
5k views

Calculate distance between two places on accounts from a VF page

I looking to find distance between 2 vendors(Accounts). I do have the lattitude and longitude of the accounts. I think i could use the google maps API to get the distance. Anybody worked with google ...
10
votes
3answers
11k views

How can an apex:pageBlockSection be rerendered if it originally has a render value of false?

I am having trouble getting an apex:pageBlockSection to rerender from an apex:actionFunction call if the section is initially not rendered. My goal is to initially hide a section when the page is ...
4
votes
2answers
6k views

Apex Repeat Using Set Collection

My Controller returns a list of strings in a SET variable to Visual force page. I want to use an apex repeat to iterate over the SET collection but when I save the VF page it gives me an error. Is ...
5
votes
3answers
3k views

calling an actionfunction reloads the page despite giving rerender attribute and says insufficient privileges in sites?

Calling an actionfunction reloads the page despite: return false from the place where we call setting rerender="emptydiv" It says insufficient privileges in Sites (authenticated using partner portal)...
0
votes
1answer
2k views

How to include data from custom Lookup Relationships in a Visualforce page

I have a custom object: License, this has a Lookup for the standard Account (meaning: an account can have many licenses) and they are shwon on the account page with a related list. On my account page,...
3
votes
4answers
4k views

How to compare 2 dates in JavaScript on a Visualforce page?

I have a Visualforce page in which I try to compare 2 dates. The code: <apex:page StandardController="Account"> <script> window.document.onload = new function(e) { alert("{!Account....
3
votes
4answers
5k views

How to print a quote or invoice from salesforce

How do I print a Bill, or an Invoice on a custom object on the click of a button. Things I've thought of Printable view : it does not give me the control to change the formatting Visualforce Page : ...
1
vote
4answers
16k views

Can I create a popup/alert window/message when a SF page loads?

I would like that depending on some criteria's (checkbox, date, name, value) of a certain field/custom field, on an object. Once that object loads, a popup window will appear. an OK button is ...
13
votes
2answers
3k views

Using transient keyword to store password in hierarchy custom setting

Per a security review, we've found that the use of transient keyword is required to store variables within custom settings. There's a great link that's been provided to help us get pointed in the ...
24
votes
2answers
11k views

Visualforce Locale specific date format

How can I go about displaying a date that is formatted to a users locale, for example me and my Australian friends use the format dd/MM/yyyy, while the Americans amoung us use MM/dd/yyyy. I know I can ...
1
vote
2answers
742 views

Is it possible to authenticate users with an on-premise legacy system via an iFrame in a Visualforce page?

Anyone here use Force.com User Authentication approach for a composite integration with a on-premise legacy system via an iFrame in a Visualforce page? I can't implement SSO in this scenario for SFDC ...
3
votes
5answers
1k views

Visualforce onChange not always rerendering [closed]

I have a visualforce page with a select box that fire off an action that re-renders a section of the page based on the selection. This works fine when you select any of the other options in the list. ...
9
votes
4answers
5k views

Has anyone done Drag and drop multi-upload functionality for attachments/files?

I'm trying to create a visualforce page where someone can drag and drop attachments to upload them and they can see a preview of attachments that they have already uploaded. There are a ton of jquery ...
8
votes
3answers
3k views

Upcoming “clickjacking” protection

There is a new alert on the Partnerforce portal that is letting partners know of the upcoming "clickjack protection" for non-setup pages in Winter '13. It seems to be stating that if a customer turns ...
5
votes
4answers
8k views

Error: Could not resolve the entity from <apex:inputField> value binding '{!variable}'

This seems like it should be very simple and I have no idea why it isn't working. I have a VF page with a controller. The controller has the following property (yes, I made sure to save): public ...
11
votes
6answers
2k views

HTML5 elements vanish when rerendering Visualforce

I have noticed that HTML 5 tags like <section> and <header> disappear from the page when I reRender the page. On initial load of the page the HTML5 elements appear as expected but when the ...
33
votes
2answers
21k views

Dynamic number of columns in a pageBlockTable

I would like to be able to dynamically control the columns displayed in a page block table. This would mean that if new fields are added to the object the controller and page do not have to be updated....
7
votes
5answers
12k views

How do we create a popup from VF page?

I have a VF page with couple of buttons. I need to show a popup when one of the buttons is clicked. Something like a modal popup where user has to fill in something or click the cancel button in the ...
3
votes
1answer
147 views

How can I reference a test Remote Access application while testing my managed package?

In my managed package I have included a Remote Access application that references my external web site to handle various integration tasks including: Product fulfillment requests/cancellations Client ...
13
votes
3answers
12k views

ID for Contact portion of Person Account

Is it possible to get the ID of a Contact which is part of a Person Account? I have a custom object which has a custom field referencing the Person Account, though it seems to be referencing the ...
6
votes
2answers
3k views

Access custom controller-defined enum in custom component?

Given a custom VF component that uses a custom controller; the controller defines an enum: global with sharing class My_Controller { public Case currCase {get; set; } public enum StatusValue {RED,...
7
votes
2answers
2k views

URL management / readable URLs in visual force

We are considering developing a new version of our website (where our customers can purchase and manage certain types of content) on the force.com platform. We have a business/usability requirement ...
25
votes
3answers
19k views

How should I build test methods for Visualforce Controller Extensions

I would like to know the best way to write test methods for controller extension classes that are used by Visualforce. What is the minimum set code that I need to cover the basic operation of the ...
3
votes
6answers
5k views

Visualforce to excel for more than 20K records

I need to export a VF page with contentType="application/vnd.ms-excel#Patents.xls" with a datatable fetching from a list with more than 20000 or 30000 records to an excel.. i changed the type to ...
10
votes
4answers
5k views

How much of the Salesforce User Interface can I customise?

I would like to change the colours and images used in salesforce to provide a completely custom user interface that will adhere to my corporate brand style guidelines. What are my options? How much ...
15
votes
5answers
5k views

Is it possible to use images in Visualforce generated PDFs which are not static resources?

I'm trying to generate a Visualforce PDF (renderAs) with a variety of images from different sources includes Salesforce Attachments and Documents, as well as third party sites. So far I've only been ...