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
26 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
43 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
93 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
28 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
71 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
71 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
vote
1answer
38 views

Is it possible for one Visualforce Page / Apex Class to modify of another instance of itself?

I have an apex class mySenderClass with public {get;set;} variables that store values such as subject and HTML Body that I use in a Messaging.sendEmail method. Users open multiple tabs of the same VFP ...
0
votes
0answers
30 views

Getting error “Uncaught ReferenceError: sfdcPage is not defined” when loading Visualforce page in Lightning

I have a Visualforce page that launches from a custom button, and this VF page launches fine into a new window in Classic. However, this button does not render properly in Lightning. The page "...
0
votes
0answers
44 views

Pass Account ID Using URLFOR

I have a Visualforce Page that uses the standard Contact controller with a controller extension. The page is embedded on the Contact record layout and displays a related list of a custom object that ...
0
votes
0answers
27 views

Connected App's “Start URL” -> Using IDP Initiated SSO

I have a connected app between two salesforce orgs, one is IDP and another is SP. My connected app works fine with SSO, i.e. I am able to login to the SP org from the IDP org using this connected app ...
2
votes
1answer
76 views

Not able to use LMS in VF page iframe in Aura Component

I want to use LMS to publish data from the VF page and receive it in Aura Component. I have an Aura Component and am trying to iframe a Visualforce page in it. <aura:component> <iframe src='/...
0
votes
2answers
49 views

Standard fields translation

I need to translate product names and their descriptions, using workbench i can only translate cutoms fields. Is there a reliable ISV or API that i can use for translation? thanks in advance
1
vote
3answers
50 views

Embed Visualforce Related List on Account

I have a custom object call Account_Addresses__c that has a master-detail relationship to the Account record. I am trying to create a Visualforce page that will be embedded in the Account Detail to ...
1
vote
1answer
22 views

How to create lookup field on visualforce for person account using a cutom controllercustom controller

I Currently have a visualforce page where I want a user to be able to select a existing person account or create a new one. I am getting the error: Attribute value in apex:inputField must contain only ...
0
votes
1answer
32 views

How to format my Salesforce time field for input in visualforce?

I have a time field (new time field format) called Time_In_1__c in a visualforce page. When I enter a value such as "3:00 pm" and hit save, Salesforce displays the value as 15:00:00:000. I'...
0
votes
1answer
60 views

Error: Aggregate Relationship is used in an unsupported complex expression containing 'SBQQ__Opportunity__r.opportunitylineitems [duplicate]

I have hit a roadblock on an VF email template I am working on, and would appreciate any help you all may be able to offer. I have the following code where I need to set up an email to an outside ...
0
votes
0answers
13 views

Display OrderItem currency code before DML

I have a VF component that can show a list of orders with their items. These can be either loaded using SOQL or generated in memory based on some other data. I use <apex:outputField value="{!...
0
votes
1answer
30 views

How i can access to Map methods in visualforce page

Hello I'm a beginner in Salesforce and i have to access to Size method of a Map but I need access in my VFP, the controller is: variable = new Map<string,Map<string,boolean>>(); variable....
0
votes
0answers
36 views

How to create a link to a specific community record detail page by passing the ID as a variable

I'm trying to create a link to a specific record detail page in a lightning community from a VF page, by passing the record ID as a variable. The community record detail page I want to navigate to has ...
0
votes
1answer
33 views

Variable to hold the return of type wrapper class from a method

I have a class and a method. In the method I am calling another method of another class - Class2.Method2 The return type of method 2 is a wrapper class. What should be the variable type in my method 1 ...
0
votes
0answers
35 views

Converting On-click Javascript to a Lightning Web Component

I've been trying to convert either our On-click Javascript or a visualforce page buttons to a Lightning Web Component since last month without success. Component <aura:component extends="c:...
0
votes
1answer
33 views

How to print a double quote string in vf page

I have a requirement to display double quote string in vf page. This is the scenario. I am storing a string with double quotes like "Test01" In apex I am fetching value like this ...
1
vote
1answer
24 views

Large inputFile becomes null in controller?

I have a visualforce page with an apex:inputFile. I understand that the limit is 10MB. But when I upload larger than 10 MB, there's no error. The controller simply gets null, so I can't tell the ...
0
votes
0answers
10 views

How can I test my apex class to increase code coverage? [duplicate]

I am trying to create a VF page on the Account object that will display open opportunities. I have it working in the sandbox but am unable to move it to production because the code coverage is 0%. ...
0
votes
1answer
30 views

Visualforce to Visualforce Lightning Component Communication - postMessage not received

I have two visualforce page lightning components on a lightning page. I am unable to get them to communicate, there are no logs to the console and no errors to report. The posted messages are not ...
0
votes
1answer
81 views

Add html tag in Custom Label and use in LWC Component not working

I have used bold tag for bold text in the custom label and used that custom label in my lightning web component but in my component text is not printing bold. Custom Label Name: KM_HelloWorld Value: ...
0
votes
1answer
32 views

Close an public visualforce page that using Lightning Out App

I have a visualforce page that using Lightning Out App to show aura component to Non Authentication user. And when I click the button to save record on Aura Component and the result return ...
0
votes
1answer
26 views

How to set the size of a column table unchanged on Visualforce Page

the text overflows from the column while I set the width of the column <apex:repeat var="cases" value="{!Quote.QuoteLineItems}"> <tr width="100%"> ...
0
votes
1answer
16 views

Getting an error when trying to create a visual force page

Here is my controller class public class OEM_Target_Controller { public String currentRecordId {get;set;} public String parameterValue {get;set;} public OEM_Target__c oem {get;set;} public ...
0
votes
0answers
27 views

How to encrypt custom field so that users can see the decrypted bank account number only when they update the field?

The requirement is that the custom field Bank Account Number should show up as xxxxxx1234 when any user opens the Oppt object. But when the bank account number changes the user should be able to see ...
0
votes
1answer
28 views

Child relationship name for Related List for Custom Object

I created a custom page that I want to show the related list between my Opportunity Object, and a Custom Object (DocuSign) I have not been able to insert the proper relationship name, and I get the ...
1
vote
1answer
36 views

VF page render as pdf not working properly

I am trying to display some HTML(stored as HTML text in rich text field) in to vf page via output text tag. This HTML text has unordered list inside an unordered list(like a nested unordered list). It ...
2
votes
1answer
37 views

Can we directly bind apex class property in LWC - for 25MB file upload with apex (heap size issue)?

I have lwc component like: import { LightningElement } from 'lwc'; import {saveAttachment} from '@salesforce/apex/DocumentController.saveAttachment' export default class FileUpload extends ...
0
votes
0answers
13 views

Unable to use rerender and oncomplete with apex:input file

I have checked that apex:inputfile does not work with rerender and oncomplete tags of action function. But I have seen there are some workaround. I tried using action region around other content, like ...
0
votes
0answers
28 views

How can I add attachment to related list of object when the user is not logged in?

I have a Visualforce page with lwc components in Site, which does not require user to log in. Here the requirement is to upload a file as attachment to a Custom object. In other places we had login ...
0
votes
1answer
16 views

Do some controle before generating VisualForce PDF page

I designing a VisualForce PDF page and I am using a controller extension. The generation of the page happens by clicking on an action associated to an Object to show it's different fields' values. I ...
1
vote
1answer
19 views

VF: Is it possible to show only selected rows in a datatable?

I have a datatable based on the OpportunityLineItems Object that shows every Product in the Opportunity Record. Now I want only the products to be shown that are selected by a checkbox. Is there a ...
0
votes
0answers
15 views

Can I add a recaptcha without using multiple sub domains

Are there any known issues with adding a recaptcha that references force.com and/or visualforce.com domain without including a subdomain in the url? I have a form with recaptcha I would like to be ...
0
votes
2answers
40 views

How to fetch parent object field from child object's on vf page extension

We have two objects SieBid_Opportunity__c which is child object and SieBid_Account__c which is parent. I have created a vf page with standard controller of SieBid_Opportunity__c which shows the lookup ...
0
votes
0answers
16 views

HTML Tag Video is not working in Iphone/Ipad

Please find below my code (It is working in Android mobile but not in IPhone): I am using HTML5 video tag in my code which working in android mobile but in Iphone it is not working. I have written ...
0
votes
1answer
35 views

Apex includeScript outputting scripts after </html> tag

I am using the loadOnReady="true" attribute of <apex:includeScript /> to defer loading of scripts till DOM rendering is complete. Here's my VF page skeleton: <apex:page doctype=&...
0
votes
1answer
26 views

Visual-force Email Template working for Test but in Actual Alert it is not displaying all values

I have a Visualforce email template. When i check it with "Send Test and verify Merge fields" then it is working perfectly. However, when it passes through an email alert then only few ...
0
votes
2answers
23 views

How to remove addEventListner?

Using this to close the modal when escape button pressed in salesforce aura component. document.addEventListener("keydown", function (event) { var kcode = event.code; ...
0
votes
0answers
27 views

Page numbers in tables of contents(index) should be generated automatically

I am using Visualforce page and i want table of content(index) with page number. i am using the below code but i am not getting page number. or is there any other way to do the same? in vf page for ...
1
vote
0answers
12 views

Visualforce Gray Border Lightning Community

I tried to hold off posting because I feel like this is just ridiculous, but I'm so frustrated I have no choice. I've got a simple solid color box to drop on a lightning community, keeps showing this ...
0
votes
0answers
15 views

Upload files via lightning:fileUpload

I am developing a visualforce page. I need to download several pdf files from remote server to ContentVersion. I was surprised that I can't directly upload fetched file's blobs to the lightning:...
0
votes
1answer
45 views

How to customize Generate Document button in Quote object?

The Preview and Save & Email buttons should also work automatically after clicking the Generate Document button on the quote object. How can i customize those three standard buttons as one custom ...
0
votes
1answer
27 views

Button Override - Redirect on Create of Custom Record

When a user creates a new record I want to either A) redirect them to a page that says "success" or B) redirect them back to the home page with an alert that says "success". I don'...