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,642 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
110 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
140 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
34 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
204 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
79 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
148 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
198 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
186 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
234 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
939 views

Lightning styling of multi-picklist in visualforce page?

was wondering if anyone had any suggestions for how to do styling of a multi-picklist in a lightning manner within a visualforce page? <apex:repeat value="{!$ObjectType.Surgery__c.FieldSets[fixed]}...
3
votes
1answer
85 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
375 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
362 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
444 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
185 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
98 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
0answers
53 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
232 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
137 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
633 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
528 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
157 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
45 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
88 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
271 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
289 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
110 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
501 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
1k 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
538 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
62 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
97 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
855 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
568 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
141 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
83 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
412 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
653 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
295 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
182 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 ...
3
votes
0answers
363 views

XMLHttpRequest cannot load, “disallowed scheme for cross-origin requests”

Our package has a visualforce page that wraps around a canvas app. For some users, though, the app does not load, with this javascript console error in Chrome: XMLHttpRequest cannot load. https://...
3
votes
0answers
55 views

Resize Inline VF page based on content is really delivered?

I was surprised to find Resizing Inline VF page based on content idea has been delivered in Summer'16 release.But I couldn't find information how about it, anywhere in the Summer'16 release notes ...
3
votes
0answers
756 views

The page you submitted was invalid for your session Error

After reviewing all other posts related to this error I could find on stackexchange and on other salesforce forums I still couldn't find any similar scenario to mine. Exact Error : The page you ...
3
votes
0answers
675 views

Visualforce.remoting.Manager.invokeAction - Limit on parameters?

Visualforce.remoting.Manager.invokeAction('{!$RemoteAction.Classname.MethodName}', Parameter1,Parameter2,Parameter3,function(result, event) { I am calling methods using Visualforce.remoting.Manager....
3
votes
0answers
466 views

Summer 16 Lightning components in Visualforce pages throw Lightning Out Error

Did anyone else notice this with Summer 16 instances? I have a Visualforce page that contains a lightning component. This works fine in production. In a sandbox on Summer 16, I get a 500 Server error ...