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,772 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
281 views

Help on enableClickToDial in visualforce

I am using Open Cti in a visualforce page and the page is pinned in utility bar in LEX. Now on click of a button, we are invoking enableClickToDial with a simple callback. Howver the ...
3
votes
0answers
301 views

Why do I get the error “System.VisualforceException: Read access denied for ContentNote, controller action methods may not execute.”?

In a Visualforce page I am outputting fields of ContentNote (such as "CreatedDate") using the same pattern that already works for Note (and many other types) where the sob is a reference to the ...
3
votes
0answers
262 views

force:refreshView and Visualforce

I am hitting this known issue where edits in a Visualforce page once returned to the record are not reflecting in the UI in Lightning Experience. I can't refactor this into a Lightning Component ...
3
votes
0answers
793 views

Sending messages from lightning component to visualforce component

I am trying to send messages to visualforce component from lightning component: My lightning component: <aura:component controller="CustomBuildingFormController" description="BuildingMap" ...
3
votes
0answers
134 views

Use of Label attribute in apex:page tag

I am quite confused about this statement in Documentation: label || String || The label that is used to reference the page in Salesforce setup tools. I tried with following code: <apex:...
3
votes
0answers
211 views

Make Chatter Profile Photo available externally?

I'm working on making some email templates, made of various visualforce components. One of these includes some information about a user they'll be interacting with. Additionally, this component ...
3
votes
0answers
38 views

How to validate the specific record when field is empty based upon specific record value in apex:repeat tag?

How can I validate the specific record when field is empty based upon specific record value in apex:repeat tag? For example, I have displayed 10 account input records with four fields in page. In ...
3
votes
1answer
221 views

How do i have SLDS box align next to each other with same height

I know this is mostly related to css, but i just want to see if this can be accomplished using available classes in SLDS. Here is what i am trying to accomplish. I want to have 2 box side by side ...
3
votes
0answers
89 views

VF : Persist data between two VF pages

This is my VF Page <apex:page showHeader="false" sidebar="false" cache="false" contentType="text/html" controller="AWS_Upload" > <script src="https://ajax.googleapis.com/ajax/libs/...
3
votes
2answers
200 views

Could not open the Visualforce Page Tab on one/one.app after Critical Update Actived

There was a new critical update named "Remove Instance Names From URLs for Visualforce, Community Builder, Site.com Studio, and Content Files". But after active it, all of the Tabs which contains a ...
3
votes
0answers
273 views

Salesforce Lightning and the EmailAuthor

We want to switch from sfdc Classic to Lightning. But we are using a lot of custom fields with links (formula fields with hyperlinks) to refer to visualforce pages which are calling different apex ...
3
votes
0answers
203 views

Salesforce1 stopped supporting geolocation

I have a Visualforce page enabled for Lightning, which has one button that gets the geolocation in coordinates and shows the location in a Google map embedded in the page. This was working until last ...
3
votes
0answers
286 views

Creating SFDX Project from existing Source

we have a pretty big org and decided to implement sfdx now. We want to split up the org in different sfdx projects. The first module we want to convert to sfdx is a visualforce page. I followed the ...
3
votes
0answers
50 views

My hard-coded string is modified during Upload or Install process!

In my VisualForce page I've used one component three times. This component has an attribute called tableTitle which gets a string and shows it on my table. This table component is in a package (let's ...
3
votes
1answer
98 views

Is there a limit for number of content folders?

I am getting this error when I try to create a content folder using a visual force page(by inserting a record in contentfolder. As per this link, there should not be any limit for the number of ...
3
votes
0answers
442 views

No navigation for sforce.one.navigateToURL from vfpage lightning out in a community site

I have a lightning component developed to work both in lightning and in community pages(flexipage:availableForAllPageTypes,forceCommunity:availableForAllPageTypes) To work around LockerService ...
3
votes
0answers
420 views

Loss of Lightning Card style on reRender of outputPanel in Visualforce

I have a visualforce page that gets initially loaded, then an action function is triggered that does a webservice callout. Once the action is finished and the output panel rerenders, I am losing the ...
3
votes
0answers
490 views

Rendering VF page as PDF in Lightning

I have a question about an issue with rendering VF page as PDF in Lightning Experience (same code works fine with Classic). I have a button that calls visualforce page which calls VF page and saves ...
3
votes
0answers
208 views

How to prevent href rewrites for Visualforce pages in Lightning Experience?

On a Visualforce page use in LEX I have a Link like this: <a onclick="{! 'sforce.one.navigateToURL(\"/' item['Id'] + '\")' }" href="/one/one.app#/sObject/{!item['Id']}/view" > {!...
3
votes
0answers
109 views

How to pass values between two apex:selectList asynchronously

I'm building a VF that's meant to query for Thing__c. The fields that are meant to be filtered are set in a fieldset. I'm iterating the fieldset rendering an apex:inputField for each and have an ...
3
votes
0answers
1k views

Is /one/one.app#/alohaRedirect/apex/vfPageName ideal solution to open vf page in lightning experience?

We have an issue wherein when a user is redirected to our application from an external point such as an email link and if the user is lightning enabled then the custom VF page does not display the ...
3
votes
1answer
2k views

How to determine page mode (Edit/View) in Lightning Experience

Please note that this is about Lightning Experience (with actions overridden), not Classic. So, getParameters() doesn't work here. Here is the output if someone needs to see it's output. {id=XXXXX, ...
3
votes
3answers
1k views

How get domain for visalforce and lightning?

I trying get below information from salesforce. I need it to dynamic developer no hardcode. I need this to communication lightning component via visualforce page. yourdomain-dev-ed.lightning.force....
3
votes
0answers
55 views

Reloading a custom VF page in Lightning mode loads first page which has been navigated using sforce.one

We are using sforce.one js object for navigating custom VF page in Lightning mode. We have added custom VF page on record page from where navigation takes place to different custom VF pages using ...
3
votes
0answers
242 views

Invalid Page on clicking 'Save and New' button in SFDC Community

I have one doubt please help me where I'm missing ... In my contact object, the standard New button is overridden by a Visualforce page. It is working fine in SFDC Classic. Now I have a community (...
3
votes
0answers
146 views

ActionStatus only affects a single PageBlockButton, not both

While testing a page I was working on, I noticed something strange- the apex:actionStatus I had set up to prevent users from clicking save more than once was only working with the button that the user ...
3
votes
0answers
674 views

How to Show Record Type Picker in Lightning

I have a VF page that I use for both classic and lightning. In this page, there is a button to create a new account. For classic, it just redirects the page to this url: /001/e?setup/ui/...
3
votes
1answer
579 views

apex:repeat failing to rerender

I'm trying to reRender an apex:repeat tag to display items from a list on the click of a button. <apex:outputPanel layout="block" id="repeat_panel" > <apex:repeat value="{!messages}" var=...
3
votes
0answers
173 views

$Setup global merge field for checkbox hierarchy custom setting always returning false in Visualforce

I have a hierarchy custom setting with a checkbox field on it. The checkbox field defaults to false. When managing the custom setting only the Default Organization Level Values are defined. There ...
3
votes
0answers
46 views

Access HomePageComponent via SOQL or Apex

Outside of using the SOAP API (and Metaforce), is there any way to access HomePageComponents and which WebLink records are in each? Even better would be finding a way to access the Home Page Layout ...
3
votes
1answer
3k views

Invalid Field For SObject Error

I am having issues creating a table of related record for a custom object. I have a custom object 'Equipment Library' with a child custom object 'Equipment Library Item' which in turn had a field ...
3
votes
0answers
95 views

Update object through Visualforce email template

I have a scenario where I have a custom object to store temporary keys. In my Visualforce email template, I fetch a key and inserts into the email and that works great. But, I need to be able to set ...
3
votes
0answers
294 views

Lightning Experience Visualforce Component has extra Padding in Spring '17 and thus making VF pages look awkwardly spaced

When we place a Visualforce component container in Lightning Page, the current release displays them correctly without extra spacing, thus allows a developer to control the look and feel of the ...
3
votes
0answers
302 views

Work around for window.open in Salesforce1 Android

I created a visualforce page that can be opened in SF1 via a tab in the navigation menu. This VF page has links to reports and dashboards that need to be displayed in standard layouts (not the SF1 ...
3
votes
0answers
623 views

SVG icon disappears after rerendering - why?

This is the why part of this question: Lightning design system - SVG disappears after rerender The below code should be able to get reproduced in every org. VF page: <apex:page controller="...
3
votes
0answers
112 views

How to make a VisualForce page used as View-override to hilite the current tab in LEX like in Aloha

I have overridden the view of contact here Now in Aloha the Contact-tab will be hilited because I use Contact as Standard Controller: <apex:page standardController="Contact" extensions="...
3
votes
0answers
515 views

Lightning experience embedded page redirect

I've got a VF page embedded into page layout. It redirects user to other VF pages (depending on user action) inside an iframe on page layout. In LE such PageReference redirects sort 'step out' from ...
3
votes
0answers
2k views

The target origin provided does not match the recipient window's origin

I am getting below error in console when I try to open a Visualforce Page. AuraAlohaFrameNavigator.js:5Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://ap2....
3
votes
0answers
572 views

How to make table align correctly Salesforce Lightning design system Javascript Table

I was able to append my data, and now the data does not align correctly with the column headers as well as it is not sortable (in the code I have sortable enabled. and the check boxes do not align ...
3
votes
0answers
67 views

Salesforce1 memory leak with custom vfpage

We create a lightning ready VF page. It works perfectly in Lightning experience on desktop. But it's really slow in salesforce1 on IOS, and look like creating memory leaks we cannot reproduce on ...
3
votes
1answer
118 views

Community Login Flow Causes Error Resetting Password

We are attempting to implement a login flow on our community site for the Community Knowledge User profile. The flow works well with the exception of when someone goes to change their password. The ...
3
votes
0answers
901 views

Javascript proxies were not generated for controller

I enabled "Developer mode" on my account and visited my visualforce page and got an error that says "Javascript proxies were not generated for controller: may not use public remoted methods inside an ...
3
votes
0answers
598 views

Show/hide table rows

I'm trying to allow the toggling of table rows for a set of tables on a page: <apex:repeat var="dev" value="{!userList}"> <apex:pageBlockTable value="{!dev.projectMap}" var="project" ...
3
votes
0answers
153 views

Sign Up form success page not redirecting

I have a custom sign up form which used to work perfectly until last weekend. Now, after it hits success, the success page is not being fired. That's the URL I get https://www.salesforce.com/...
3
votes
1answer
89 views

Update the contact active__c field status onchange apex:inputcheckbox

I have problem in my code. i have created a pageblockTable with pagination. it's work fine. issue is i want to update all pageblocktable active__c(checkbox) fields onchange apex:inputcheckbox. i was ...
3
votes
0answers
445 views

How to use panelgrid in Edit mode with different column widths in Visual Force?

I am attempting to use panel grid to display 6 columns. The first 5 columns are simple picklist fields. The 6th column is a Comments field. I would like the first 5 columns to be rather narrow, and ...
3
votes
1answer
737 views

Cancel button and immediate=true not working

I have a inline VF page where i show child records of the object. The child records are rendered in a apex:pageblock table. I am using apex:inlineeditsupport to enable inline editing of the fields for ...
3
votes
0answers
321 views

Re-render visual-force panel twice in single button click

On my Visualforce Page, there are two chained long running call outs when users click a button. I'd like to know if I can re-render a panel twice in that click. So that the results can be displayed as ...
3
votes
0answers
190 views

LC4VF, Summer 2016: The $Lightning.use function works in Developer Org but gets 500 Error in Sandbox

How do I eliminate or work around a 500 error preventing me from using Lightning components on a VisualForce page in a sandbox? Identical code works in a dev org but fails in a sandbox. Note: In the ...
3
votes
0answers
1k views

Display report in visual force page

I want to display report table in visualforce page.I am looking for solution that available but so far I found : Using Iframe : This serve exactly what I want but I don't want to use iframe because ...