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,761 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
16
votes
0answers
442 views

Continuation Apex Unit Testing - Lightning

With Summer'19 release continuation is available in Lightning. To make long running callouts. Continuation - Aura Dev Guide: https://developer.salesforce.com/docs/atlas.en-us.220.0.lightning.meta/...
16
votes
0answers
412 views

Custom Labels in Packages - Potential BUG in Winter 19 (Confirmed as Know Issue by Salesforce)

We have an unmanaged package using 167 custom labels to use the Translation Workbench in Salesforce and to be able to translate texts into different languages. Until now, all our custom labels have ...
16
votes
2answers
807 views

Is forcetk accessible in Communities

I am using forcetk to upload files (as Attachment records) in a VisualForce Page and it works fine. But when I access same page in a Community, I am not able to upload the file as I am getting the "...
14
votes
1answer
380 views

Cannot read property '$$OwnerKey$$' of null

I have a Visualforce Lightning Out page that's rendering some <lightning:input type="date"> elements. Since the Winter '19 release in the dev sandbox I'm working in, whenever I select a date ...
9
votes
0answers
76 views

Made 3500 SOQL Queries in one context. LIMITS HACK?

Steps to reproduce: Create Visualforce Email Template Create Visualforce component and add it into the email template Create Apex Controller for the component from pt.2 Do some SOQL queries there, ...
9
votes
0answers
807 views

Error parsing json response: 'expected expression, got '<''. Logged in?

I'm calling a remote action which returns a wrapper. It works without any issues on most of the time. But sometimes, it throwing an error: Error parsing json response: 'expected expression, got '&...
9
votes
1answer
2k views

<apex:inputFile> 'accept' and 'contentType' on VF page only working when not called from mobile

<apex:inputFile value="{!attachment.body}" fileName="{!attachment.name}" id="file" contentType="{!attachment.ContentType}" accept="image/*,application/pdf"/> If I call this from my desktop ...
8
votes
0answers
1k views

Lightning Components: How to fix New Button in Related Lists of Visualforce Pages rendered insinde a Visualforce Component on a Flexipage

For Visualforce pages the Standard New-Button created by <apex:detail> doesn't work correctly inside Visualforce containers on Flexipages. Scenario: I've put a Standard Visualforce Component ...
8
votes
1answer
151 views

How can I reproduce the EmailAuthor native SFDC application?

I'm comfortable with sending emails using APEX and using mailmerge within that process. What I want to do now is load an email template, mailmerge it automatically using a predetermined contact ID and ...
8
votes
2answers
376 views

Error when setting “rendered” attribute on apex:mapMarker

I am trying to show/hide some map markers on an <apex:map> by assigning a boolean value coming from an Apex attribute to the rendered tag. However, I am receiving a compile error on save: ...
8
votes
4answers
7k views

Display the fields properly in output panel while using actionRegion

I am using actionRegion for to show/hide the fields based upon picklist in Opportunity. When i am selecting the Stage picklist value is Closed Lost, then 4 text fields will be displays. It works fine. ...
7
votes
1answer
594 views

Change URL of Popup Window from Lightning

So I'm in the situation where I have a Lightning component that's embedded in LEX, and it provides links that open up a new window containing a Visualforce page. Each link opens the same page but ...
7
votes
1answer
320 views

URLFOR($Action.CustomObject__c.New) Not working since Summer 16 release

The following snippet works well on a sandbox that's still on Spring 16 Lightning Experience but gives the same code gives an error on a sandbox running the Summer 16 release from a visualforce page :...
7
votes
0answers
252 views

Loading Static Resources When Accessing a Page WIth an OAuth Access Token

If you specify the 'web' scope for a connected app it's supposed to grant/provide access to Visualforce pages. I'm authenticating via the iOS mobile SDK and then attempting to use the access token I ...
7
votes
0answers
594 views

Firefox browser: $User.UITheme and $User.UIThemeDisplayed return wrong value in Lightning Experience

While trying to overcome the problem with <apex:outputLink target="_blank"> not working under Lightning Experience, I found this atricle; they propose checking the {!$User.UIThemeDisplayed} ...
7
votes
2answers
2k views

Console - How to make case created from flow open as a subtab?

I'm in the Service Cloud Console. I have a flow embedded in a VF page. The VF page is a component on the account detail layout. The flow creates a case. When the flow is finished, I want the case ...
7
votes
0answers
553 views

Trigger page message in the parent page from the Controller Extension of a custom list view button

Is there any way to trigger the display of a page message in the embedding Detail page from the Controller Extension of a Custom list view button? I create my list view buttons with this technique ...
7
votes
0answers
2k views

Display hover using LookupHoverDetail along with scrollable outputpanel

I'm trying to create a pageblocktable that uses lookuphoverdetails to display the mini page details for Accounts on a custom object. The problem that I'm experiencing is that the pageblocktable is ...
6
votes
1answer
119 views

Locale Supported Format For Visualforce Input Field

I've been rewriting a Visualforce page to use SLDS styling. Part of this requires rewriting dynamics DateTIme fields to SLDS Date time picker. This therefore means writing the Date part of the ...
6
votes
1answer
942 views

Files: Why ContentVersion /sfc/servlet.shepherd/document/download/ sometimes sets Content-Disposition=attachment and sometimes =inline

I need to view and PDF file stored as an attachment inside an IFRAME in this context: Visualforce: Why the display of an PDF-File inside an IFRAME works on a Sandbox but not in Production? Inspecting ...
6
votes
1answer
1k views

What does '?scontrolCaching=1' mean in a URL from a Visualforce page?

I have a custom list button on the Account object that, once clicked on, auto-navigates a user to the defined Visualforce page which uses the Opportunity standardController. I notice in the URL, it ...
6
votes
0answers
528 views

Is the Standard Lightning Compo “Activities” programatically usable in custom Components or on visualforce pages?

In the Lightning App Builder used to arrange a Flexipage, the topmost Standard Components on the leftside panel is called Activities. Is this Component also available (or exposed) and usable in a ...
6
votes
2answers
465 views

Intermittent 404 errors using Lightning Out in Visualforce

I'm seeing intermittent 404 errors when attempting to use lightning components inside a Visualforce page via Lightning Out, but one org seems far more affected than others. The VF markup: <apex:...
5
votes
0answers
414 views

Safari support for iframing a visualforce page

Background: I have an API I wish to use from within my managed package which occasionally results in long running callouts. In order to ensure my users don't encounter errors with the limits to long ...
5
votes
0answers
133 views

No DML_END Issue

Yet another "what gives" question. I have a custom object that is updated upon a button click on a VisualForce Page. I can see in my debug logs that the object has been updated. But when I refresh ...
5
votes
0answers
236 views

'Multiple items found' error when selecting from 'My Recent Items' drop down on standard lookup field

Maybe a Summer '18 Version problem? I have a dependent lookup field where you must select the value via the lookup window. After you have done this there is a standard lookup field that filters on ...
5
votes
0answers
446 views

Visualforce Remoting: Javascript proxies were not generated for controller QuoteLayout: may not use public remoted methods inside an iframe

I've looked at all of these solutions here on SFDC stack exchange (1) (2) (3). I followed them for what applied to what I'm doing and I'm still getting this error. I made my apex class global ...
5
votes
1answer
642 views

Can Lightning WorkspaceAPI be used to Open tabs in Visualforce Pages?

Can Lightning WorkspaceAPI be used to Open tabs in Visualforce Pages? I have a custom console app that incorporates the integration toolkit function for opening tabs/subtabs involving multiple ...
5
votes
0answers
493 views

Recaptcha in Salesforce Lightning component

My requirement was to create a custom lightning component, which will be hosted in a community and will allow users to create cases. Before submitting the case, users have to successfully pass 'I am ...
5
votes
0answers
438 views

How to run a macro using apex class?

How can I run a macro using apex class? I have used a Visualforce Page to run the macro with standard method "sforce.console.runmacro" in javascript. Similarly, I need to call it in an apex class ...
5
votes
0answers
194 views

<apex:map> doesn't render when using continuation(asynchonous callout)

It seems like there's a bug rerendering an <apex:map> from asynchronous callout. On my sample page below I have two <apex:commandbutton> one executing an asynchronous callout(action="{!...
5
votes
0answers
284 views

Hitting error when trying to save HTML5 canvas in VisualForce Page

We have a requirement to open an image attachment in a VisualForce page, the user should be able to draw on the image and those edits should be updated in the attachment on save. So to achieve this, ...
5
votes
2answers
431 views

Is there an URL-pattern in LEX similar to /apex/NameOfVisualForcePage?

In Aloha the URL /apex/NameOfVisualForcePage lets Salesforce show the VF-Page named "NameOfVisualForcePage" Assume LEX = Lightning Experience and SPA = Single Page App I know LEX is SPA, but that ...
5
votes
0answers
643 views

Visualforce field help icon/text not rendered in Lightning Experience?

Just noticed today that the apex:inputField field-level help icon and help text are not rendered when a Visualforce page is run in Lightning Experience. It looks like field-level help text only ...
5
votes
1answer
418 views

Using SLDS icons in inline VisualForce page within managed package fails due to 302 redirect

I am currently creating a managed package and am running into a problem which I think others will or have also faced while deploying a package using lightning components which are optionally wrapped ...
5
votes
0answers
341 views

Since Winter '17 update, iframes embedded in Visualforce pages do not appear

Since Winter '17 update, iframes embedded in Visualforce pages do not appear. There have been no change in the VF pages, iframes etc. Can anyone help me with this?
5
votes
0answers
803 views

JSON parsing to Visualforce page difficulties

Following my previous question here I've been dealing with some pretty crappy JSON for an assessment submission and trying to display it in a VF page as a table, ultimately with questions, available ...
5
votes
1answer
296 views

Is there a issue with <apex:selectCheckboxes> when associated to apex properties?

I am defining a apex property public String[] values{get; set;} and calling it in VF page `<apex:selectCheckboxes value="{!values}">` <apex:selectOptions value="{!items}"/> ...
5
votes
1answer
972 views

Visualforce Compilation Error: “Expected input type 'text'”, got 'date' for Id data type

I have an input like this <apex:input type="date" value="{!myMap[myKey].DateValue}" /> In my apex:page i have put the docType="html-5.0" attribute but i can't save the file with this ...
5
votes
2answers
598 views

Accessing Intranet web application from salesforce

I'm new in salesforce world. i have question about salesforce and we implemented for sales and service team. my question is: we have internal portal web site for employee and knowledge management. ...
5
votes
0answers
462 views

Display Publisher Actions (Upload file to feed) on Visualforce page in Salesforce1

I have a feed-enabled CustomObject__c which I want to expose via Salesforce1. For some reasons I have an override for the View page that is a used for desktop and mobile devices. On of the use cases ...
5
votes
2answers
630 views

Conditional page overriding using nooveride=1 #Salesforce1

I have to conditionally override standard Salesforce1 detail page for accounts but when I use nooverride=1, the salesforce1 still goes to the overridden page and enters an infinite loop. Can anyone ...
5
votes
0answers
944 views

Chatter feeds not appearing correctly on Vf page

I am showing a chatter feeds in my VF page by using the following <chatter:feedWithFollowers entityId="{!theCase.id}"/> The feeds dont seem to be displaying correctly. I cant see the feeds on ...
4
votes
1answer
95 views
+50

How to use polyfill in visualforce component?

Link to polyfill: https://github.com/jonstipe/number-polyfill The polyfill is to allow increment decrement buttons in Internet explorer for I added the .js and .css file from the polyfill as a ...
4
votes
0answers
28 views

Empty Visualforce tags without closing whitespace

Consider this very simple part of a Visualforce Page: <apex:variable var="object" value="{!MyObject__c}"/> <apex:pageMessages/> Until recently when you tried to save this you would've ...
4
votes
0answers
45 views

Visualforce page not displaying correct Devnagiri words when it render as pdf

I am using Arial Unicode MS font in the visual force page. I need to render it as pdf. The HTML contains Devanagari words. HTML is displayed properly but the words are broken in the generated pdf. e.g ...
4
votes
0answers
331 views

Using cometD in visualforce page

I am trying to use CometD with my platform events. I've added a basic use case for the time being for clarity: * I have a platformevent and a trigger. Whenever a client (custom object) gets edited, a ...
4
votes
0answers
1k views

Automated Process User Permissions

We are having some difficulty with permissions. Our admin has also posted on the success board. https://success.salesforce.com/answers?id=9063A000000eB7V, she also found this same posting: https://...
4
votes
0answers
86 views

“Parameter has wrong value type” when referencing Flow from VisualForce

I'm attempting to create a VisualForce page with a standard list controller that passes a list of custom objects (Feedback__c) to an SObject collection variable in a flow using the {!selected} syntax. ...
4
votes
0answers
128 views

Unable to simulate FLS/CRUD security leaks although no checks in code

I recently checked my managed package using the Force.com Security chechker (by Checkmarx) and the tool listed a few CRUD and FLS issues in my Controller classes. Before fixing them I tried to better ...