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
0answers
13 views

Include managed static resource in Vf page [duplicate]

I have installed a managed package that has some static resources along with other features. I want to include a static resource to my vf page, but i get an error message: "Error: Field $...
0
votes
0answers
10 views

Save two objects in a single VF page using custom controller

I am in the process of developing an apex:form that will save two records: Recipient__c and Scholarship_Award__c. I need to create a custom controller to save new records for both objects on the same ...
0
votes
0answers
28 views

Custom Controller Question

I have a simple Visualforce page with 3 fields that launches from a controller method related to another VF page. The page loads properly using the controller below, but I am trying to pre-populate ...
0
votes
0answers
9 views

Visualforce Dynamic Attachments [closed]

First of all, thanks for taking the time to notice this question. Now, I would like to build a Visualforce Page Form wherein when I put my 1st file in apex:inputFile, it will pass that first file in a ...
0
votes
0answers
15 views

VF - apex:inputField does not show the lookup icon with master-detail relationship

When I add an apex:inputField for a master-detail relationship it does not allow you to choose a parent via the lookup icon - it only shows the name of a parent if I append a record ID in the URL. If ...
0
votes
0answers
32 views

Send Email with Attachment from Invocable method

I have created a multiscreen flow. Once all the details collected through all the screens, I am creating a record. Immediately after that, I am calling an apex class(invocable method) to send an email ...
0
votes
1answer
22 views

Display an image (document) in a word document (generated from visualforce)

I would like to display an image (which is a document externally available) in a word document (generated from a visualforce page). The point is that works only if the image URL is with a HTTP and not ...
0
votes
1answer
14 views

How to show fields from multiple objects in Visualforce Page string

I have created a visualforce page to display as txt, so that when a button is clicked, a txt file is downloaded to the computer. I need this txt document to be a comma-separated collection of fields. ...
1
vote
0answers
13 views

Inline editor for VF not showing despite having development mode and show view state enabled in user detail

New to VF here... I have dev mode and show view state in dev mode checked in my user detail page - however I cannot see the inline VF editor when I navigate to my Visualforce pages.
0
votes
1answer
26 views

How to apply SLDS on Visualforce page?

I downloaded SLDS and saved as a static resource. Then I applied the style on Visualforce page, but it's not working. How can I apply SLDS on Visualforce Page? Lightning Design System Static Resource ...
0
votes
0answers
10 views

Responsive VF Page in Salesforce Mobile App

I have a Visualforce page code which works perfectly fine in Desktop and When I view the same in Mobile it seems to be merged and messed up. I know this has something to do with the CSS Formatting and ...
0
votes
1answer
35 views

how to open url in same window using window.open [duplicate]

I want to open the URL in the same window I'm actually using the lightning component inside vf page so I can't use "Navigate To Url" as it only works in one.app container. It’s supported in ...
0
votes
0answers
17 views

Visualforce apex form not saving records

I created a basic VF page with an apex:form component however when I preview it and enter details, the record is not saved in my org. The same happens when I add the component to a community - is ...
0
votes
0answers
9 views

IsAvailable returns false even when the user profile has Record types assigned

IsAvailable returns false even when the user profile has Record types assigned. Prototype of code below : List<Schema.RecordTypeInfo> rt = Case.SobjectType.getDescribe().getRecordTypeInfos(); ...
0
votes
1answer
17 views

Display an image in a word document with visualforce

I develop a visualforce page which generate a word document. Unfortunately, the image in the word document is not displayed whereas it's ok in PDF and in visualforce page. The document has the ...
1
vote
1answer
23 views

What is the best method to display images on a VisualForce page?

Is it still best to use Static Resources to zip up images to use in a VisualForce page (or elsewhere)? We basically display a table on the page with a small image (a company logo) in each row. ...
-4
votes
0answers
25 views

Getting System.NullPointerException: Attempt to de-reference a null object error for Wrapper Class [closed]

This is my Wrap Class: public class Wrap3 { public list<wraptrainer> wrapTrainerlist { get; set; } public Wrap3 (){ list<Training_Deal__c> ...
0
votes
1answer
18 views

Implementing Visualforce page view count using javascript and updating the count in custom field

Hi We have two fields created for reporting and administrtion purpose. Product_Book_View_Count__c Product_Book_Download_Count__c We track how many time a user is visiting the record and updating the ...
0
votes
0answers
27 views

CSRF issues on Visulaforce pages involving POST requests

We have an anti-CSRF token for Visualforce Pages - "Require CSRF protection on GET requests". This token is meant to restrict CSRF for pages involving GET type requests, e.g. the pages ...
0
votes
0answers
17 views

Using a Custom Stylesheet in a Visualforce Email Template being rendered as PDF

According to this Visualforce Developer Guide: Using a Custom Stylesheet in a Visualforce Email Template It should be possible to add custom CSS to a Visualforce Email Template like this <...
0
votes
1answer
34 views

what would be the way to save fields of a form before creating a record

I am working with a form with simple fields, which I want to have an automatic save, that is, if I close the tab the data remains there until I create the record. Is there a way? I have used the ...
0
votes
1answer
26 views

Getting Error in visualforce page while preparing to display collection of account record names in picklistcontrol with the help of SelectOption

public class NewSectionOptions { public List<SelectOption> lstoptions {get; set;} // SelectOption is an apextype class to add elements to picklist control in vf page. public ...
1
vote
0answers
16 views

Trying to publish Lightning Message Channel from Visualforce page and getting error `Sfdc is not defined`

I am trying to publish a message from a visualforce page into a lightning component and my visualforce page is not able to publish. My Visualforce code : <apex:page applyBodyTag="false" ...
0
votes
0answers
22 views

Clickjack protection block VF Page in Lightning Component

I created VF page and a lightning component, then embed VF Page to lightning component. Like follow code: <iframe src="/apex/MyTestPage" width="100%" frameBorder="0" /&...
0
votes
0answers
13 views

How to use custom VF component in managed visualforce email template [duplicate]

I am trying to use custom vf component in managed vf email template but it is giving me an error saying unknown component. My vf component is set to global already and all the attributes are also set ...
0
votes
2answers
33 views

Controller Test to Cover Delete

I have what I think is a simple controller and test class, but when I try to compile the test class, I get an error related to my deleteAddress() method: System.QueryException: List has no rows for ...
0
votes
1answer
35 views

ApexPages.StandardSetController.getSelected() method is returning System.NullPointerException: Attempt to de-reference a null object [closed]

public class showSelectedRecordsController2 { //public static List<Contact> conList = new List<Contact>(); public static List<Contact> conList {set;get;} public static ...
0
votes
0answers
10 views

All Updated records data is not sending from VF page to controller in JQuery Datatable Pagination

i have same issue as below questions asked earlier by others.link provided below. There is no answer to these questions.Could you please help me on this. Record changed data is not sending from VF ...
0
votes
0answers
21 views

Trailhead Geolocation App Project: Cannot Read Property Length of Null

So I’m trying to follow the “Develop an Account Geolocation App with Aura Components ” project tutorial but for a custom object, and I’ve run into a problem with implementing the Map Component and ...
6
votes
2answers
163 views

Externally hosted Javascript is unable to access Visualforce page

From my Visualforce page I am calling an externally hosted Javascript app: <apex:page> <apex:iframe src="https://external.com/index.html" id="theFrame" /> </apex:...
0
votes
1answer
12 views

Open Subtab from Visualforce page which is not Inline

I have a custom search VF page which search on multiple criteria's like FirstName, lastname, DOB, NPI, MemberId etc. After a result is found we show two sections on the VF page, first section shows ...
0
votes
1answer
27 views

How to prevent duplicate submit

On SFMC I created an email template that includes the degree of customer satisfaction from 0 to 10. Clicking on a number you are redirected to a visualforce page to submit the vote. If I try to click ...
0
votes
1answer
15 views

Getting error as “ Error: Unknown property 'AccountStandardController.conList' in VisualForce page”

Visual force page code: <apex:page standardController="Account" extensions="Contactextctroller" recordSetVar="lstacc" setup="false" sidebar="false"...
0
votes
0answers
12 views

How to Show Table borders in rich text fields in Comments Section?

How to get value with the table in the comment section. I want the value like sample img2. Any ideas on how I was able to do it? [1]: https://i.stack.imgur.com/dRqgM.jpg [2]: https://i.stack.imgur.com/...
2
votes
1answer
40 views

Static Resource in VisualForce Page

I am using google Re captcha in my Visual force Page as below <apex:page sidebar="false" showHeader="false"> <apex:slds /> <html> <head&...
0
votes
0answers
23 views

Clone a quote and mantain the relationship with its original quote line items

I'm trying to make a button which clones the quote and keeps the relationship with the original QuoteLineItem. Basically I don't know how to clone related lists. I get the quote Id from the page with ...
2
votes
0answers
28 views

Where do PDF render requests originate from? S3 images not loading [closed]

I am trying to render <images> hosted on my AWS S3 server on my Visualforce page (rendered as PDF). If I don't render the page as PDF the images load fine, however in PDF view all images are ...
0
votes
0answers
24 views

Images rendered in visualforce page but can't be rendered in pdf [duplicate]

I have an image from an external url and I want to use it my visualforce page and render the page as pdf. However when I add the keyword renderAs="pdf" to the top of the page I showed below. ...
0
votes
0answers
9 views

Help with Controller Extension Test Class, [duplicate]

I have a very simple controller extension and I'm trying to write a test Class, but I am only able to get 12% coverage. I'm not sure how to cover the rest of thelines below. Right now only my ...
1
vote
1answer
20 views

Strange Error on Parent relationships with apex:outputText - Unknown property 'VisualforceArrayList.Name'

I have a Child object Commercial_Terms_ED_Approval__c with a master detail relationship to it's parent Commercial_Terms__c. However my visualforce pageBlockTable is having issues pulling in parent ...
0
votes
0answers
14 views

Custom Dependent Picklist VF Page

In the image, There is a dependent picklist with field dependencies between Portfolio__c and Business_Line__c . Its values are stored in a wrapper class SolutionMapper. But now I have to convert it ...
0
votes
0answers
12 views

Adding a Time Out for live agent chat request

We have a requirement to end a live chat automatically if an agent does not accept or decline the request within 5 minutes. Following this thread : Live agent chat idle session 10 mins , I have tried ...
0
votes
0answers
22 views

Inactive page for community won't display static resources

I am developing a VisualForce page using the below css and html. While I've double and triple checked that the resources are in the org, public, and properly referenced, when I deactivate the org ...
1
vote
1answer
26 views

Is there anything similar to {!URLFOR($Action.Attachment.Download, attachmentId)} which we can use in LWC

I have attachment Id and I need the URL for that particular attachment. Right now In visualforce we have {!URLFOR($Action.Attachment.Download, attachmentId)} to get the URL. But In my LWC component I ...
0
votes
0answers
19 views

Fatel_Error : System.QueryException: List has no rows for assignment to SObject [duplicate]

I want update list of opportunities using visualforce page.In visualforce page I want to update Amount,close date and Stage.The visulaforce page should only show all open opportunities(STAGE NOT ...
3
votes
0answers
76 views

Redirect from LWC embedded via Visualforce in Page Layout fails

I have an LWC component that needs to log in via an OAuth flow before it can be used. If unauthenticated the component first redirects to an external Login page after the user clocks a button. <...
0
votes
0answers
25 views

VisualForce page screenshot - ouput displaying as blank

I have a vf page with a custom iframe url. This page also has a button which on click captures the screenshot and mails it to the given email id. Below is my vf page and controller: VF Page: <apex:...
0
votes
1answer
16 views

Inner class property not seen in visualforce dynamic component

Apex Class public class outterClass(){ // set properties public List<innerClass> inners {get; set;} outterClass(){ // set inners list values inners = new public List&...
0
votes
0answers
58 views

LWC Cannot call a public method in child component

We're having issues calling a public (@api) method in child component from the parent. We are doing everything as in the guides - the child has an annotated method: @api publicMethod(param) { ...
0
votes
4answers
61 views

A good editor for APEX/VisualForce?

I'm doing some APEX coding, which includes Triggers, and some Visualforce pages. I have found the editor that Salesforce provide is no good, and most of the time the auto complete functionality does ...

1
2 3 4 5
317