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,643 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
1answer
87 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
1answer
96 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
1answer
339 views

Accessing inputField Values Created Inside apex:repeat

I need help in getting values from VF component page, just for the sake of clarity I have added very few fields to make my point across. How to access inputField values that are created inside an ...
3
votes
0answers
337 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
118 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
116 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
725 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
258 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
297 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
328 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
524 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
419 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
280 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
117 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
455 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
398 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
136 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
60 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
513 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
963 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
513 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
163 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
262 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
479 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
63 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
523 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
189 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
296 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
287 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
236 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
185 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
420 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
200 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 ...
3
votes
2answers
56 views

What would would be the best controller for a custom gateway page for a community?

I am trying to write a custom VForce page for a Community landing page so after users login they can see the main sections of the Community and click on the links and then go to the page layouts view. ...
3
votes
1answer
66 views

Add event user availability section Event in Visualforce

I developed a visualforce page Event StandardController but I want to add the assigned user event calendar component, I mean this section: There is a way to set this section in visualforce? Thanks.
3
votes
0answers
413 views

Is it possible to include a Mustache.js Template saved to a Static Resource within a VisualForce Page?

My VisualForce page includes the following Mustache.js template code: <script id="template" type="x-tmpl-mustache"> <tr><td>{{LastName}}</td><td>{{FirstName}}</td&...
3
votes
0answers
874 views

Sorting the Opportunity Line Item Products into Categories?

I am having an Invoice Layout and adding the Products as follows using the Visual Force page: Quantity, Product Code, Product Description, Unit Price ,Net Amount, VAT 1, S5KGC, 5Kg CO2 ...
3
votes
0answers
288 views

Internal Server Error in Partner communities when using extension controller

We have a appexchange app in which there is a global class. We are using this global class as controller in local VF page and also created a extension class. When i try to use the variable declared ...
3
votes
1answer
528 views

Rendering a custom object vf page as pdf in salesforce1 chatter

we use sfdc pe. We have a custom object where we render invoices as pdf and display it on browser in desktop edition. However same functionality does not work in salesforce1. I recently realized ...
3
votes
0answers
36 views

Plugging external components into a managed VF page

In my managed VF page how can I leave room for external components to be plugged in from client orgs? The key question for me here is, how do I pass variables to the placeholder so that the external ...
3
votes
0answers
272 views

Any way to dynamically change the height of a publisher action?

I'm creating a UI component that I would like to use as a custom publisher action as well. It is a two-step wizard that expands vertically when a user clicks in a form field. I suspect that ...
3
votes
0answers
2k views

How to refresh record when user presses Cancel button in Salesforce1?

I'm writing a visualforce page as a custom object action for Salesforce1 app accessed on user's mobile devices (e.g. iPhone) and need to refresh the detail screen when the user clicks the Cancel ...