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,768 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
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
380 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
58 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
798 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
715 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
478 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 ...
3
votes
1answer
320 views

Pagination using wrapper Visualforce

I have this piece of code that works pretty fine, for "next" and "previous" buttons - however, despite my efforts, I have not been able to write effective code for "first" and "last" button. Please ...
3
votes
1answer
91 views

Pass Report Criteria (picklist value) with links in VisualForce

I am passing report criteria in a VisualForce page with an outputLink. It works fine where i pass a blank / true / false but when i pass a picklist value, the value does show up in the report filter ...
3
votes
0answers
831 views

How can I get the selected listview id (or name) without using javascript

We have a listview button that executes javascript to obtain the currently selected listview id and passes that value to another VF page. We are planning on moving to Lightning soon and that will ...
3
votes
1answer
101 views

In a form I have two fields. One OR the other is required. Can I do this with VF/Apex?

I know I could completed this on the front end or with some JS, but I am already using the required attribute on the apex:inputField for all the other fields, so it would be nice if I could make this ...
3
votes
0answers
67 views

What is the best way to upgrade logo of application and report in managed package?

E.g. client A have managed package v1.0 installed. Then you are releasing v1.1 with app logo changed. Currently, when you upgrade client A with v.1.1 logo won't be changed, since Document component is ...
3
votes
0answers
356 views

Cordova.js include in visualforce page

Incuding cordova.js in my visualforce page <apex:includeScript value="{!URLFOR($Resource.BPMobile, 'BPMobile/cordova/cordova.js')}" /> Getting the following in chrome console: Mixed ...
3
votes
0answers
123 views

Visualforce Email Template Page Break

Is there any way to force email template to continue as a second page ? I tried "page-break-before:always" "page-break-after:always" but it does not work for me. What can i do to add page break to ...
3
votes
1answer
118 views

Merge Multiples Accounts by Selecting a CheckBox

I have an app to show iteratively the IDs by selecting a checkBox. I need to merge the selected accounts, how can I do that? This is the Controller: public class MyAccountListCntrlr { // ...
3
votes
1answer
1k views

Hide iframe url

I am using a visualforce page and adding an apex tag: <apex:page standardController="account"> <apex:iframe src="a.com/embed/preview/f?theme=dark fullscreen" width="100%" height="800px" ...
3
votes
0answers
2k views

apex:repeat - select all check boxes

I have used <apex:repeat> tag to display records in table using paging. In which I have used <apex:selectCheckboxes> to select the checkbox for that particular record . What should I do to ...
3
votes
0answers
293 views

&nbsp; in PDF is shown as square

I have this page <apex:page showHeader="false" sidebar="false" standardStylesheets="false" applyHtmlTag="false" applyBodyTag="false" ...
3
votes
0answers
2k views

onchange event in selectList and actionSupport not firing after first time

I have a VF page where the user can select the RecordType before seeing all the fields for the selected record type on my custom object Request_For_System_Change. Here is the VF Code: <apex:...
3
votes
0answers
321 views

How can i hide approve/rejection link in approver history using visualforce area in home page component?

I am trying to hide approve/reject links using visualforce area but it is not happening below is the code and i have already included this page in home page component- <apex:page ...
3
votes
0answers
340 views

Lightning Component for Visualforce issue for Guest User

In answer to this thread - Expose Lightning App via Sites (and embed via Canvas) - Doug has mentioned that there is bug for guest user when using LC4VF. "There is currently an issue (actively being ...
3
votes
1answer
574 views

Radio Button in Lightning Design

I want to use radio buttons in Lightning Design. In my Visualforce page, I am retrieving the options from my controller and doing something like this: <apex:repeat value="{!SiteDetails}" var="rad"&...
3
votes
2answers
484 views

Can we detect presence of a 'Chart' in a report for using <analytics:reportCharts> component?

When using the component I'm receiving following error due to a chart not present in the report, be cause I verified Report exists and is public shared and report types are valid (Summary/Matrix), ...
3
votes
0answers
322 views

How to get the Referrer in SF One

I have a bit of a pickle. I have overloaded my custom object's view page with a VF page. This means that it can be invoked, using native functionality, from all kinds of places (search, related lists, ...
3
votes
0answers
119 views

Send email to lead owner on assignement

I have created an cutom lead capture form. I am searching for existing lead or account. If lead or account exists it should get assigned to exhisting lead owner. I am assigning the lead owner through ...
3
votes
2answers
490 views

Visualforce System.QueryException: List has no rows for assignment to SObject

Visualforce Error: System.QueryException: List has no rows for assignment to SObject Class.opportunityProductEntryExtension.: line 30, column 1 theOpp = [ SELECT Id, Pricebook2Id, ...
3
votes
1answer
413 views

Custom url hack button not working

Could someone please review the following code and explain why this custom button is not working? <apex:page action="{!urlFor('/a0H/e? Name=[autoname] &CF00N3B000000TB2z={!Contact.Name} &...
3
votes
0answers
138 views

Process Builder not working through API call

We have a process that works when users create/modify cases from within the UI, however when a case is created by an Apex class and the process gets called b/c of that create, the process runs but ...
3
votes
0answers
63 views

Favicon Display Issue using IE

Custom favicon for customer community is correctly displayed using Chrome but not in IE. In IE, favicon shows on home page but navigating to any other page it reverts back to the Salesforce cloud. ...
3
votes
0answers
111 views

Visual force apex:vote component doesn't rerender the area

I've encountered with a bit strange behaviour related to apex:vote visual force component. According to the official documentation this component has 'rerender' attribute (as basically many others). ...
3
votes
0answers
572 views

How do we best deal with public remote calls in lightning desktop?

Testing out existing Visualforce pages in Lightning desktop we're coming across a lot of javascript errors around the remote calls to our controllers: Javascript proxies were not generated for ...
3
votes
0answers
993 views

Showing menu bar on Visualforce pages with Lightning experience

How can I enable the quick access toolbar / menu bar on the vf page once I enable the new lightning experience. I see 2 relevant options which I thought would let me enable the menu bar,and set all ...
3
votes
0answers
537 views

Submit & Recall Approval Request Button Missing On Custom Related List

I have custom Visualforce Page which included the approval process as related list. <apex:relatedList list="ProcessSteps"/> I can't see Submit & Recall Approval Request button even I'm a ...
3
votes
0answers
2k views

Lightning Experience gets 'stripped' when redirecting from Visualforce page

I`m struggling to fix an issue which arise with the new Salesforce Lightning Experience. So, I have a Visualforce page which is assigned to the Edit functionality of Accounts. In Salesforce Classic ...
3
votes
0answers
171 views

Show direct ancestors/descendents only, not siblings/aunts/uncles/cousins

I used unmanged package account inline hierarchy from appexchange : https://appexchange.salesforce.com/listingDetail?listingId=a0N300000016chCEAQ and tweaked the code to use it for custom object. ...
3
votes
0answers
274 views

<optgroup> functionality in salesforce

Good day everyone, I want to create a select in salesforce which look is similar to html tag optgroup. I want create an option within an option. Is it possible ? If yes, how will I do it ? Thanks...
3
votes
0answers
4k views

How to invoke Action on Component Controller from VisualForce page

@Adrian Larson: I can not use Action="{!clearSelect}" thats because I already have method that get the Id that I have selected on VFP controller, unless is there a way to capture Id in the Component ...
3
votes
0answers
489 views

Adding Chatter feed mess up current visualforce page style

I need to add Chatter feed into my visualforce page.Here the before adding chatterfeed tag. But after adding chatter:feedwithfollowers tag, my page style mess up.The section area size size become ...
3
votes
0answers
419 views

BrowserId cookie in customsite vfpage submit

I have a custom website with no user login, with form created in Visualforce page using vfpage compositions, after submit the page, it appears that sfdc creates a cookie called "BrowserId". How can I ...
3
votes
0answers
67 views

Performing DML on records who have inactive owners

I have a Quote__C(custom Object) whose owner is a portal user which is now inactive. I have to perform a dml on such record ,but salesforce isnt allowing me to do so(from other portal user profile ...
3
votes
0answers
534 views

Custom Visualforce Page for Shared Activities

I'm trying to create an inline Visualforce page to substitute for the standard 'Name' related list on Shared Activities. The problem I am trying to solve is getting more information that just the ...
3
votes
0answers
190 views

Salesforce1 HTML select onChange function not working in Salesforce1 IPAD app

I have created an HTML5 VF page to be used in Salesforce1 app. It has a select list Called Event Name with values: Presentation Lecture Other There is another text field called Type. This has to be ...
3
votes
0answers
304 views

Save & New Button for Visualforce page with data on lookup

public class ProductController { ApexPages.standardController m_sc = null; public ProductController(ApexPages.StandardController sc) { m_sc = sc; } public Pagereference ...
3
votes
1answer
290 views

Need help editing this VF page so it will respect apex-input for reference field

I am new here and trying to stick to guidelines by posting a new question instead of in an answer :) My issue is exactly the same as this issue: Custom Value Picker Meaning that I have installed the ...
3
votes
1answer
239 views

Is it possible to include js files from static resources into listview onclick JS button?

Is it possible to include js files from static resources into listview onclick JS button? REQUIRESCRIPT can't be used anymore for static resources because of this Known Issue that won't be fixed. The ...
3
votes
0answers
407 views

Using Polymer for Material Design in VisualForce Pages?

I am thinking of using Google's Polymer Library to provide Material Design in apps. Google Polymer Library I have a few questions?: Is it compatible with Salesforce? If yes, is there any running ...
3
votes
0answers
49 views

Visualforce Page using wrong data for updates

I am facing a weird problem in my Visualforce page. We have a inventory management system that has a list of the parts and the orders associated to that parts showing on the visualforce page. I ...
3
votes
1answer
45 views

Can I override show All Tabs link?

I want to override all tab link with a visual force page
3
votes
0answers
187 views

Get Chatter Group Link with URLFOR

Would like to add a link to a chatter group to a visualforce page. Following best practices was trying to use {!URLFOR()} so the page doesn't break if the chatter group url format changes. However, I ...
3
votes
1answer
443 views

Remove Recent Item suggestion for Visual force lookup

This is my VF Page: <apex:page standardcontroller="account" doctype="html-5.0"> <apex:form > <apex:inputfield value="{!account.FAccount__c}" html-autocomplete="off"/> </apex:...
3
votes
1answer
205 views

Change the color of a global action that references a VF page (from being the default purple) in S1 mobile?

Is this possible to do declaritively change this action color to match the 'visualforce tab' color just like how custom object tab colors carry over? Trying to make this purple action match the VF ...