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
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 ...
3
votes
0answers
204 views

Summer '14 CombinedAttachment.ContentUrl returns null

I'm using a StandardController page like the following to try and display the URL of a Google Doc. To test this, I've uploaded a real Google Doc to an Account record, and I can see the 098 record ...
3
votes
0answers
73 views

Can you build a symbol table from a VF page?

Is there a parser for a VF page that will build a symbol table? I'd like to know what external references exist so I can tell what public variables and methods are unused in a project. Looks like ...
3
votes
0answers
300 views

Load VF login form data on startup

I have VF Login page for portal user where I am trying to save few fields which includes inputtext and picklist so when user close the browser and come back again then the same information appear back ...
3
votes
0answers
3k views

Hierarchical tree view in VF with custom object

I have a custom object that shows a relationship between a contact or account with another contact or account. I would like to display these custom objects in a hierarchical tree display. My VF page ...
3
votes
0answers
1k views

How to update a record created on a flow?

I am having the following issue with a flow: The flow creates an account, after a couple of extra screens it needs to update that account, this is a simple version of the flow: The flow saves the id ...
3
votes
0answers
848 views

Redirect to Lead detail page from visual workflow

I have a flow which involves a record lookup to Lead object. If the record is found, then user needs to be redirected to the corresponding lead detail page. Lead_id is the flow variable that stores ...
3
votes
0answers
276 views

Implementing Custom External Identity Button on Visualforce page

I'm currently trying to implement a button on my organizations customized visualforce page which I want to have the exact same functionality as the button in this screenshot (the googleLogin button, ...
3
votes
0answers
567 views

Trigger a native change event from within a Visualforce component

I am using the following Visualforce multi-select picklist component (thanks @metadaddy!) and extending it to handle an 'onchange' attribute: https://github.com/metadaddy-sfdc/Visualforce-Multiselect-...
3
votes
0answers
2k views

Action Function is not working without rerender

would any one please explain me why action function is not working without "rerender" attribute.If it works it is showing null values. Even it works fine with empty rerender attribute. <apex:...
3
votes
0answers
912 views

apex:actionFunction action doesn't seem to work the same as apex:commandButton action

I am trying to override a custom object new and edit actions with a simple visualforce page. The desire is to not need a custom controller and just use the standard controller methods. <apex:page ...
3
votes
1answer
658 views

How to produce correct DateTime Format in Apex: Outputlink / Apex: Param

I am using a visualforce page email template in which Recipient is a Contact, relatedTo is an Event, it dynamically generates an *.ical Attachment. That works just fine by using <apex:outputText ...
3
votes
0answers
300 views

RemoteAccessAuthorizationPage Not Coming after login

I am using User-Agent OAuth flow for authenticating a community user so that he can access a native android client built using MobileSDK. Also, I have a custom login page for community which redirects ...
3
votes
0answers
485 views

How to share cookies between subdomains?

We are using cookies on our force.com site which is under domain support.example.com but we have other non-force.com applications on another subdomain i.e. search.example.com. How can I define the ...
3
votes
0answers
498 views

Mulilingual portal reset password notification email

I implemented the logic to reset a partner portal user password from a visualforce page. The form successfully resets the partner user's password and sends an email using this code in the ...
3
votes
0answers
62 views

Anyone run into this: “DeleteRestrictedByFkException not found in section Exception”

I came across this earlier today while working on a custom VF page and I was trying to delete a record from an object. Seems its stemming from the delete trigger or delete action but the exception ...
3
votes
0answers
810 views

Multiselect Picklist with field dependencies

I have an object, for example Student. In the Student object I have a multiselect picklist, that multiselect picklist having all country names. I have another picklist in the Student object having all ...
3
votes
0answers
271 views

Create dependent picklist without grey out

I created some dependent picklists in my custom object and and I am trying to figure out how to display them in my vf page without grey out of the dependent ones and also increase the size of the ...
3
votes
0answers
154 views

a way to programmatically filter a dashboard

I want to be able to filter a dashboard based on a parameter passed into it from another source or page. For example, if I select a customer record from a list, I want to be able to display a ...
3
votes
0answers
89 views

Custom Chatter Actions Being Invoked on Page Load?

I am implementing Chatter Custom Actions, but seeing some strange behavior I am trying to avoid/better understand... Below is a simple example that reproduces the issue. If you add a detail button to ...
3
votes
0answers
1k views

INVALID_SESSION_ID: This session is not valid for use with the API

In an extension of one of my earlier questions Reset password not working with custom domains from VF page On checking of the debug logs it was throwing out an exception. This page is accessed from ...
3
votes
0answers
2k views

building a calendar display for Case records in visualforce

I am looking into attempting to build a custom tab that will display Case records in a monthly calendar view using visualforce. something like the below standard event calendar view. I am looking at ...
3
votes
0answers
59 views

Is there a way to get a 7 day calendar view of assigned user in Event page

I am trying to see if i can get a 7 day of view of the calendar of the assigned user. The idea is to allow the user to choose a date based on the availability for the next 7 days Is this possible? I ...
3
votes
0answers
362 views

Call center Implementa​tion in Visual force page

I have a small requirement , Actually My client using Avaya Call center Application in Salesorce (like a soft phone), With this Call center Agents are getting the calls from the customers through ...
3
votes
1answer
2k views

How to check if the record is already part of the opened primary or secondary tab?

In the service console toolkit its not possible to open same record in two tabs since the tabs needs to be unique, reasons for which i understand. But i am in a scenario where in, on clicking a link ...
3
votes
1answer
491 views

LiveAgent - StartChatWithWindow: wrong Chat Page

I have set up a Live Agent. Suppose a chat has begun between a client and the operator. At the end of this chat the operator ha the chance to give to the client a link that he can use in another ...
3
votes
1answer
115 views

VF Detail Page with Image

I need to create a VF detail page which should have fields section in first column and an image in second cloumn as below: Basically, I need to display the field information in one column and second ...
3
votes
2answers
126 views

Cuttoff the Calendar in the Inline VF page

I have used the <apex:inputField in VF page add as the inline page in the Account page layout. I am wondering the calendar cutoff like below image. Is there any solution? Looking forward your help ...
2
votes
0answers
52 views

Visualforce page embeded in page layout is not coming with 100% width in lighting compact density

I have a visualforce page embeded in pagelayout and page is showing the 100% width for comfy but for compact it is not showing 100% width. Can any one tell me how to fix this issue?
2
votes
0answers
27 views

Can't push VisualForce page calling flow

I have a visual force page that calls a flow and passes a quote Id as a parameter. When I run source:push to deploy the VFP and the Flow to a scratch org I get the following error: force-app\main\...
2
votes
1answer
24 views

Force.com Site - Data not loading - No log

I have a simple Force.com site made of few VisualForce pages. I use the same code also in Salesforce (button on Opportunity object). In Salesforce everything work very well but on Force.com site ...
2
votes
0answers
107 views

Page break CSS not working in lightning LWC Salesforce

I am trying to do page break in LWC. But it is not working. Below is the code . How to do page break in lightning while printing the page to pdf. <template> <div> <lightning-...
2
votes
0answers
26 views

Japanese in VF generated pdf

I need to render Japanese characters as HTML in a pdf that's generated using Visualforce page. I want all the formatting to be applied along with the Japanese characters. I have used 'Arial Unicode ...
2
votes
0answers
29 views

Anyone got the Ace editor to work from Visualforce?

I would like to embed the Ace JavaScript editor in a Visualforce page. One problem is that even the minified source trees are quite large so have to be "chopped" down to fit within the 5M static ...
2
votes
1answer
360 views

Content security policy error while loading apex iframe

Issue: We get CSP (Content Security Policy) error with our Visualforce page integration. The issue is that when we access this in sandbox testing, we find that our content is wrapped in an iframe, ...
2
votes
0answers
18 views

Standard Component UI Sample

Recently, I started learning Visualforce and apex using trailhead. Following Visualforce Standard Component reference, there are only sample code and reference but there aren’t UI sample. It’s ...
2
votes
1answer
90 views

Why an Iframe loading a VF embedded in a lightning component gets redirected to “visualforce.com/visualforce/session?url”

This issue happen randomly in GS0 orgs, where the iframe try to load a VF which is redirected form .lightning.force.com/apex/vf (302 Moved Temporarily) to .my.salesforce.com/apex/vf (302 Found) to ....
2
votes
0answers
34 views

Yes/Maybe/No buttons not appearing for ICS calendar visualforce email attachment

Background I am using <messaging:attachment to generate a .ics calendar invite as an attachment as part of a visualforce email template. <messaging:attachment filename="invite.ics" renderAs="...
2
votes
0answers
158 views

Managed package inline VF page not working: login.salesforce.com refused to connect

We are working on a managed package and having a VF page that can be added as an inline page. While testing it in the installed org, that inline page is not rendering sometimes and it's showing the ...
2
votes
0answers
191 views

HTML <select> required Attribute not working in Visualforce?

I'm trying to implement a form with a required drop-down list on a VF page, as described in this example. If you click on the link above and run the sample, it works fine but when I try to implement ...
2
votes
0answers
37 views

Redirecting to a VF page from a VF page within the standard Lightning context

I have a Visualforce page being called in LEX via a button/action on the record. The page is straightforward as shown below: <apex:page id="CTISGenerateVF" lightningStylesheets="true" controller="...
2
votes
0answers
82 views

Spring '19 changes to Lightning communities CSP and visualforce pages

Before Spring '19 we were relying on a Visualforce page included in an iframe inside a Lightning community to load static HTML content. That worked without any issue. It still does when the community ...
2
votes
0answers
78 views

apex:slds not loading for Community Guest user, throws unsupported stylesheet MIME type error

The LDS CSS is not being loaded by using apex:slds tag for Community Guest User. It generates a link tag as below: <link class="user" href="/Customer/slds/css/gx0YG61QwKo3viF0Mc1gTw/min/scoped/one:...
2
votes
0answers
280 views

How to close dialog box in lightning experience using javascript?

One of SObject Lightning pages contains an Action Button which opens a custom Visualforce page. I used javascript to open and close the dialog box. It works fine in classic but in lightning it won't ...
2
votes
1answer
117 views

Accessing SLDS in a Custom Visualforce Email Template

<messaging:htmlEmailBody> <html> <body **class="slds-align_absolute-center"**> <p> All this must be center aligned</p> <p> All this ...
2
votes
0answers
35 views

Lightning Console: Uncloseable tabs

So I ran into some weird behaviours trying to migrate a customer to Lightning Console. They have lots of Apex and Visualforce and our scope of work is limited enough that we want to keep any VF that ...
2
votes
0answers
52 views

SLDS Assets global variable not working from Visualforce?

I'm blowing through some Trailheads and this bit is not working: <apex:page showHeader="false" standardStylesheets="false" sidebar="false" applyHtmlTag="false" applyBodyTag="false" docType="html-5....
2
votes
0answers
62 views

Chart rerender not working

I have a visualforce page in which I lazy load elements (otherwise the page would take forever to load). I load charts with each call of a javascript function, but for whatever reason the charts do ...
2
votes
1answer
178 views

How to use force:editRecord from visual force page

force:editRecord event works fine in my lightning app, but the same does not work in the visual force page. I am aware that force:editRecord is handled by one app container but I am looking for work ...
2
votes
1answer
175 views

no response when calling rest api from javascript function

i have two org, first org i have written code for GET method, Second org i am calling a the rest api GET method from javascipt code. in the calling org i dont get any response but it response with ...