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
3
votes
0answers
420 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
317 views

inlineEdit Cancel button suppose to work this way?

So I am try this sample directly from the developer guide, and if you were do an inline edit of the last name field, for example, and want to revert back to the original data by hitting cancel it ...
3
votes
0answers
882 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
293 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
536 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
273 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 ...
3
votes
0answers
213 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
851 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
283 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
573 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
937 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
0answers
313 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
520 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
513 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
831 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
275 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
156 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
1k 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
505 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
116 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
128 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
37 views

Dependent pick list error in visualforce

I need to display more than 10 dependent Picklists on a Visualforce page, but when I add more than 10 I get the below error: Visualforce pages may not display more than 10 dependent picklists ...
2
votes
0answers
57 views

Communicating between Lightning Components and Visualforce Pages using dynamic URLs

Following this example: https://developer.salesforce.com/blogs/developer-relations/2017/01/lightning-visualforce-communication.html I am able to communicate between an LWC and a VisualForce page in ...
2
votes
0answers
105 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
35 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
25 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
177 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
32 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
30 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
1k 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
179 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
55 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
235 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
40 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
92 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 ...