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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
16 views

When sending an email attachment from Visualforce, which is best practice - messaging.emailfileattachment or messaging:attachment?

I have a single attachment created using Visualforce to send out via email. I am using a Visualforce email template and specifying the setTemplateId attribute in my Apex class and then using the ...
Andy Hitchings's user avatar
-1 votes
0 answers
22 views

Is it possible to show a Visualforce section only in the last page of CPQ Quote?

I created a Visualforce footer that shows a signature + a bar showing a disclaimer. The issue is, the signature appears in all the pages along with the disclaimer bar. I added the signature in ...
kiwi's user avatar
  • 11
0 votes
1 answer
41 views

An Internal server errror has occured (visualforce page and managed package)

I am receiving following error when tries to open Visualforce page (ClientCollectiveInvoice) from managed package (Organization Id: 00D1x0000000My7): An internal server error has occurred Error ID: ...
Grzegorz Połuch's user avatar
1 vote
0 answers
27 views

Detail button to download filtered Report as CSV and return to detail page

I have a Visualforce page that is launched from an action on a custom object (Plate), and it exports a report as a CSV file with the Plate Name in the exported file name(this is the reason I used ...
Michelle T's user avatar
-1 votes
0 answers
16 views

VFpage button not available in dynamic related list component

I have a custom lightning page for opportunities that contains a dynamic related list associated to the contact associated to the opportunity, the list view under the contact object you can use the ¨...
Willy Kelly's user avatar
-1 votes
0 answers
28 views

How can I send a dashboard result details in an email?

I have a requirement where a dahsboard made of various matrix reports is to be sent out to a particular set of users (user count ~ 300). The dashboard is a regular non-Wave, non-Einstein etc. It has ...
Apex Srinivas's user avatar
0 votes
0 answers
34 views

Close window from Visualforce page after action completes

I have a custom button that allows a user to download a CSV of the record currently displayed. To do this, I'm opening a separate Visualforce page that triggers the download by returning a page ...
kai998's user avatar
  • 49
0 votes
1 answer
34 views

Are Aura Components, Lightning Web Components and Visualforce pages based on MVC architecture paradigm?

This may sound at first sight as a question which has been answered many times, but it has always been related to a specific thing and I've heard people have different opinions on this topic. Also, I ...
dbase1's user avatar
  • 156
0 votes
0 answers
17 views

lightning is not allowed in VF login flow

I try to use lwc in VF page and use the VF page in a login flow. User can view the page after login. So I think the issue is not related to permission. But during login flow, the page will not display ...
Jack's user avatar
  • 21
-2 votes
1 answer
21 views

Visualforce apex:chart showing unknown property error

I am trying to display a simple line chart with 3 data (today, 7 days ago, and 14 days ago) in order to view the evolution of the score of a certain record. Everything is set to "public"... ...
Bernardo Lira's user avatar
-2 votes
0 answers
20 views

ListView button opening VF Page using wrong list view when on the "recently viewed" list view

Ok so I'm really stumped on this one... I have created a new List Button that goes on a List View for a custom object. This button opens a new VF page. If you checked any rows in the list view, it ...
Tyler Edmonds's user avatar
1 vote
1 answer
32 views

Syntax Rendered in Visualforce not working

I already tried several ways to try this rendered in my code, but the header still show up, and the value is already like the criteria.how to make the header is show/not showing based on the criteria. ...
Mustika Farma's user avatar
1 vote
2 answers
53 views

How to see the fields which are used in a Visualforce email template

Have a visualforce email template for details on Opportunity closed won - I want to check which fields are being pulled through into the template from the Opportunity record. Where do I go to find ...
AwesomeAdmin8's user avatar
0 votes
0 answers
42 views

session id is not set in request header while requesting a domain url

I have url https://es-portal.gavi.org/sdgavi--uat/sdcs101/ in custom settings while redirecting to the url session id is not set in the cookie for that it always redirecting to login page..From ...
Leo's user avatar
  • 1
0 votes
1 answer
36 views

Community Site users cache not refreshing

Some time ago I updated a community site to remove an old visualforce page with an aura component that served a similar purpose. However, on occasion some users contact us having issues with the site ...
Claire's user avatar
  • 19
0 votes
1 answer
26 views

Sorting Records in apex:repeat by Date: Is It Possible?

I am currently working on a Visualforce page that utilizes an apex:repeat to display records from a custom object. I would like to know if there's a way to arrange these records in ascending or ...
izzamol's user avatar
1 vote
1 answer
50 views

NavigationMixin LWC that wrapped inside Aura not working

I have a Visualforce page where clicking on a button triggers a popup of an LWC. To achieve this, I encapsulated my LWC within an Aura component and invoked this Aura component within the JavaScript ...
Salvation's user avatar
  • 1,107
1 vote
3 answers
411 views

Visualforce PDF styles not applying

All of a sudden our styles on Visualforce pages are not applying. This is not happening in every org and only seems to be in the CS instances. I was viewing these vf pages today and did not have these ...
Zack Walton's user avatar
  • 1,521
1 vote
0 answers
90 views

Using Console Integration Toolkit in VisualForce in Lightning

I have a Visualforce page that is used inside the lightning console app. According to this Salesforce documentation, certain methods from Console Integration Toolkit are permissible in Lightning. ...
ApexAdam's user avatar
  • 144
1 vote
1 answer
39 views

Exposing a Flow in Community Site (guest profile) is not working when I embed the Flow via Visualforce

I need to embed a flow on a public Salesforce Site. I have enabled flow access for specific flow under the Site's Profile, but it still doesn't seem to show. I found this super helpful post that ...
rmarq423's user avatar
  • 948
1 vote
2 answers
61 views

Visualforce PDF sent as EmailAttachment in an Apex Flow Action is corrupted

We have a Screen Flow that basically creates quotes. In that flow, two Apex Actions are called: one that creates a QuoteDocument from a visualforce rendered as pdf: PageReference pdf = Page....
joacoiudica's user avatar
1 vote
1 answer
24 views

How to call interface propoerties in VisualForce Component

I encounter an issue where I use one of my inner classes in an apex:attribute of a VisualForce Component. Based on this thread: Reference inner class in Visualforce component I refactored my code to ...
Azumi's user avatar
  • 19
0 votes
0 answers
28 views

Can I use <messaging:htmlEmailBody> and <messaging:plainTextEmailBody> in the same template?

I wonder if it is possible to use <messaging:htmlEmailBody> and <messaging:plainTextEmailBody> in the same template? Nothing is mentioned about it in the official Visualforce documentation....
Eduard's user avatar
  • 5,037
0 votes
1 answer
39 views

How do I add info from a custom object to my visual force page when I'm already using a standard controller?

Here is what I am trying to do. I have a visualforce page, I have information from the account object populating in a table. I'd also like to populate information from my custom object to that ...
Artimus Fowl's user avatar
0 votes
1 answer
42 views

Unable to Upload Files of Lightning Flow launched by Visualforce

We are using Visualforce override page for New Case Action that is triggering Lightning Screen Flow via Lightning Out. The Lightning Runtime in Visualforce Page was Rendered according to Salesforce ...
Vasyl Poidynets's user avatar
-1 votes
1 answer
272 views

Call a Screen Flow from Apex

I've created a visualforce page with an Apex controller and have a button that should open a Screen Flow but am unable to do so. Here is the code that should call the flow: public void ...
Matt's user avatar
  • 1
0 votes
1 answer
25 views

How to generate e PDF in Apex from a VFP containing multiple aura components and attach it to an email

I currently have a VFP without any controller attached to it which displays some aura components and passes them input values from URL parameters. This is used to print a pdf or paper version of the ...
Frans's user avatar
  • 29
0 votes
0 answers
45 views

Getting Error 'An internal server error has occurred' while passing invoice template html data from LWC to Visualforce Page to render as PDF

Html Code : <div class="invoice_container" style="width: 100%; max-width: 900px; margin: 0 auto; padding: 20px; font-family: Arial, sans-serif; color: #333; background-...
Pratik Bokade's user avatar
0 votes
0 answers
44 views

Open Visualforce page as pdf in a different tab without downloading pdf

I have a requirement to open a pdf in a different tab in same window on click of a button on a visualforce page.Currently in the system - Chrome HTML Document (.pdf) is getting downloaded. Current ...
Mayank Parnami's user avatar
0 votes
0 answers
27 views

currentpage.getContentAsPDF() renders hidden tables

I have created a visualforce page (pop up window) showing a confirmation letter containing student information and booking details. The page has a table in the header (or simply at the top) that ...
user2910531's user avatar
0 votes
0 answers
13 views

Inline VF Page with Link Not Working in Community

I am using below Inline VF Page in Community but link is redirecting to VF Page instead of redirecting to the Contact Record:
Ketan Solanki's user avatar
1 vote
1 answer
175 views

Refused to frame "vf.force.com/" because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'self'"

--- Issue --- I have a LWC inside my Managed Package which dynamically opens a Visualforce Page by its name inside iframe. It worked ok in all orgs, However for the last 3-4 months I noticed that if ...
Vitalii Dehnerys's user avatar
0 votes
0 answers
18 views

How to open a Flow from a custom action using a visualforce page?

I am trying to increase the size of the flow by using a visualforce page from a custom button. This is the following code that I am using but I can never get it to actually launch the flow but instead ...
Cathy's user avatar
  • 73
0 votes
0 answers
35 views

How to do word breaks inside a Visualforce page that is rendered as PDF?

Hi now I made a table using table-layout: fixed. However, the page is displayed beyond the box, rather than passing the table line as shown in the image. I searched these parts and tried using word-...
phphll's user avatar
  • 1
0 votes
2 answers
62 views

Visualforce Email Templates -- How do I display images in my use case?

I am making Visualforce email templates for a client. Some of the emails contain a section with recommended products at the bottom, which is just an image and item name displayed in a table in a row. ...
DonDiesel's user avatar
0 votes
1 answer
40 views

How to insert predefined amount of blank spaces after a word

I have a situation where I need to export the data from salesforce object and generate the txt or csv file for our client to read and process.I can not use data loader beacuse file should be of a ...
SFDCDeveloper's user avatar
0 votes
0 answers
34 views

Unsafe attempt to load URL https://static.lightning.force.com/na224//insights/gen/static/wave/images/WaveCommon/static/icons/sprite.analytics..svg

i want to show the analytics dashboard in vf page so i used lightning out to show a dashboard in vfpage it was working fine but now it shows this bugs Unsafe attempt to load URL https://static....
Deena Vicky's user avatar
0 votes
2 answers
50 views

Format Amount in Vietnamese in vf Page

I am having a requirement where I have to display amount coming from apex in Vietnamese format in VF page. As there are lots of amount and lots of calculation going behind it so I can't do it in Apex. ...
darkshadowrule's user avatar
1 vote
1 answer
60 views

Visualforce Page: How to display all the content/data in a single VF PDF page

I am trying a display a content/data in a pdf in VF page rendered as PDF, but in pdf the content is splitting into multiple pages which I dont want, is there a way we can try displaying everything in ...
Sagar 's user avatar
  • 25
0 votes
0 answers
60 views

Render Lightning Runtime for Flows in a Visualforce Page and get variable value from URL

I'd like to launch my flow in lightning run time in a visualforce page and pass a variable to the flow. I previously used a formula URL in classic that appended recordid= Contact.Id to the URL which ...
forcethesales's user avatar
-1 votes
1 answer
45 views

Unknown property 'VisualforceArrayList.Quote__r' [closed]

I am trying to run this code, but I am getting that error Apex Class public List<sbaa__Approval__c> getApprovalList(){ List<sbaa__Approval__c> listOfApproval = [SELECT ID, Quote__r....
Abhishek Srinivasan US's user avatar
0 votes
1 answer
28 views

Unable to Embed TinyMCE 6 Text Editor into VisualForce Page

I'm facing an issue while trying to embed TinyMCE 6 text editor into a VisualForce page. I have attempted the solution mentioned here, which suggests uploading only the tinymce.min.js JavaScript file ...
ApexAdam's user avatar
  • 144
0 votes
1 answer
31 views

In a vf page which is rendered as pdf, i have a field in which value is 100,101.66 and i want that value to show as 100,102

In the code that I have given you below, I want the value in the basic total to appear in the round-off figure means if it's supposed 100,101.66 then it should appear as 100,102. Right now in this ...
Learner Salesforce's user avatar
1 vote
1 answer
32 views

Queries related to AppExchange Destination org for 2GP

Please guide me for below queries for a 2GP created : Created a 2nd Generation package. Steps followed are as below : Source Org - Partner Developer Edition , Namespace created and linked to partner ...
SF Dev's user avatar
  • 13
2 votes
1 answer
105 views

How to fetch HttpOnly cookie value in LWC?

We have 3rd party Non-SF apps that uses Salesforce Credential as Oauth provider. When we hit 3rd party application login link, it navigates to Community login page. Requirement : I want to add expid ...
SFDCDJ's user avatar
  • 1,804
0 votes
1 answer
42 views

Visualforce remoting not working when iframed

I have a VF page which is being used on a force.com site. It calls an apex method when the page is loaded using vf remoting. This is working fine when I open the URL directly in the browser. But when ...
Syed Ovais Ali's user avatar
0 votes
1 answer
56 views

redirect to visualforce page when flow finishes with embedded aura component

I am following the instructions here to have my flow inside my visualforce page render in lightning by embedding an aura component. I want to redirect the flow at finish to another visualforce page. ...
forcethesales's user avatar
-2 votes
1 answer
34 views

Visualforce Custom Currency format

I have a formula Currency field. My customer wants below format. 1.000,00 € 599,40 € 85,00 € 1,00 € I tried using the below format and this is not exactly what I am looking for. <apex:...
Dinesh Wickramasinghe's user avatar
-2 votes
1 answer
40 views

I want a pageblocksection to be visible only when the checkebox is clicked

Here is my code. This is supposed to display column1 when checkbox1 is clicked, and so on. I can't seem to figure out what's wrong. <apex:page standardController="Account"> <apex:...
Devgal's user avatar
  • 1
-1 votes
1 answer
41 views

System.NullPointerException: Attempt to de-reference a null object. I Have check all Possible ways but not getting solution

Create Qoute from Opportunity Create Quote line item from opportunity line item. qoutebt is the button on qoute line item to create qoute line item from opportunity line item. All are custom object, ...
Dheeraj D's user avatar

1
2 3 4 5
334