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
9 views

Passing record id from force.site to Visualforce page

I wanted to pass the record id whenever a checkbox is ticked to force.com site. So assume that this can be done easily using a formula. But I’m confused as to how to pass the id from force.com site to ...
0
votes
2answers
19 views

Can we redirect a user into a VF page from an Apex trigger

I have a scenario where a user if he/she uploads a file against a particular record, then the user will be redirected to a VF page after the file upload is successful. I wrote a simple trigger in ...
0
votes
0answers
8 views

How do hide 'Save Payment' option in B2B commerce standard page?

How can we hide Save Payment checkbox in standard page for Payment in B2B commerce ?
0
votes
0answers
16 views

Rich Text And Images In VisualForce

If i create a richText inside of a visualforce page and i paste a screenshot inside the rich text box . Is it Possible to bind the whole rich text content to a 'string ' in the controller, Will the ...
0
votes
0answers
21 views

Custom button with content source as URL: Illegal URL or an improperly formatted request while opening VF page

I am trying to open a VF page in community site and in Salesforce using same custom button added on Opportunity Layout. I tried multiple ways to achieve this, but nothing working as expected. ...
1
vote
1answer
14 views

How to change a Visualforce Page UI to Lightning

I am using this code for a Visualforce page. I created this VF page to have a files related list without the "Upload Files" button. Is there any way to make this UI better and closer aligned ...
1
vote
1answer
25 views

Visualforce page with custom controller to create filtered picklist and list view

I'm trying to create a public facing visualforce page that doesn't require login. Users will be able to select a campaign of a specific record type, and then select an opportunity where the Primary ...
0
votes
0answers
10 views

Content Security Policy: Wildcard Directive

For a security review, I ran ZAP scanner on my application (Salesforce URL) and it is reflecting some security issues. The description for CSP issue is as follows: The following directives either ...
0
votes
1answer
24 views

Method does not exist or incorrect signature: void get(Decimal)

public void caclculate_best_price(List<Goal_Items__c> goal_items){ Map<Id, Map<Id, Map<Decimal, Decimal>>> Savings_Goals_to_Products_to_Sizes_to_Prices = ...
-1
votes
0answers
12 views

how to make vendor contact person name field mandatory in visual force page using java script code with out going to server?

<apex:page setup="false" sidebar="false" showHeader="true" tabStyle="Training_Deal__c"> <apex:sectionHeader title="VendorRegistrationForm" ...
0
votes
0answers
15 views

Combine 3 pageblocktables in visualforce to one, on the basis of scenario mentioned

I'm new to salesforce, I'm working on visualforce and apex and I got a situation where I want to combine 3 different tables in which handyman's name is common. Also, the specialities custom field on ...
0
votes
0answers
7 views

Hot to remove app.css when use Lightning out in VF Page

I use Lightning Out to run a Flow in VF Page. In test I found some issue in my demo. Case 1: Footer Top Border missing The reason as follow image. Case 2: White Mask show Case 3: Layout maybe ...
0
votes
0answers
18 views

From Visualforce page invoke Lightning Component - EMP API not working

I have a Lightning Component that Subscribes to platform event. When this Component is called standalone, everything works fine. However, i need to invoke this component from Apex as well. Due to the ...
0
votes
1answer
17 views

Get last created related object data in Visualforce Email Template

I have a Visualforce Email Template which is as follows <messaging:emailTemplate recipientType="Contact" relatedToType="Case" subject="Test"> ... <apex:...
1
vote
1answer
16 views

Apex Visualforce page styling remove underline and text align [closed]

This image shows the output of the Visualforce page: How to text-align Opp Created Date to the right the page? How to remove all the underlines? here is the code: <apex:pageBlock > <...
0
votes
1answer
37 views

Throw an exception in Apex if attachment is null

I have a Visualforce form that takes attachments of which I need to make required in order for the user to proceed to the next screen. Since the record doesn't get inserted until the end of the multi-...
-1
votes
0answers
20 views

How can I create a custom lookup field that displays a list of products? [closed]

How can I create a custom lookup field that shows the list of filtered products (product2)? that is, I have a picklist field that shows the product catalog records (sobject) and it should show the ...
1
vote
0answers
19 views

Options to lock Header and Footer sections in Word when Visualforce Page is rendered as word

I am looking for options to lock the header and footer sections in the word document when Visualforce page is being rendered as word. Any help would be appreciated! <apex:page sidebar="false&...
1
vote
0answers
33 views

Lookup search modal not working for lightning-input-field component in lightning out for LWC

As visible in the screenshot below, The lightning-input-field component along with lightning-record-edit-form is used to generate this view. LWC is embedded inside the Visualforce page using the ...
1
vote
0answers
25 views

How to filter records according to a specific value of a picklist in visualforce? [duplicate]

I am in a situation where I need to create a picklist with records of a subject in a visualforce page, and based on the selected value, show the products related to it. How can I achieve this? I get ...
0
votes
0answers
40 views
+50

AWS PUT Request from VisualForce

I have created a Named Credential within SF that stores the Authentication information for our AmazonS3 instance. We have code that is working when the AmazonS3 credentials are stored directly within ...
0
votes
0answers
21 views

I have to use a extension controller instead of the below custom controller, how can i update the below logic in constructor? [closed]

public class SEND_MEETING_INVITE_CONTROLLER_CLASS { ID currentRecordId = ApexPages.CurrentPage().getparameters().get('id'); List<Medical_Event_vod__c> MeetingList=[Select Id,Name,...
0
votes
0answers
12 views

lookup on visualforce page in lightning style

I have created a visualforce page that uses account lookup fields. I am using these page in lightning by giving lightningstylesheets = "true". However, when I click on the Search Icon of ...
1
vote
0answers
22 views

Salesforce record to Excel

So I'm trying to build a Visualforce page that takes some data from an individual record, displays it in a table and populates the appropriate fields, as well as leaving some fields empty, and exports ...
0
votes
0answers
24 views

What would make the same code produce different results in a different sandbox?

I have this test class for a vf controller that runs ok in one sandbox but in the other there is an Id field that is returning null. What am I missing? The reason for creating a second sandbox was to ...
0
votes
0answers
30 views

Salesforce VS Code Issue

We are facing issue on my VS code every time its shows me The terminal process failed to launch: A native exception occurred during launch (Unable to start terminal process: CreateProcess failed). 2....
0
votes
1answer
32 views

Lead convert choose existing radio button

In Lead Convert how to find programmatically in apex trigger if the Choose Existing is selected or if CREATE NEW option is selected? Thanks
0
votes
1answer
14 views

External page in iframe

I need to display the external page in VF page iframe But I'm getting www.salesforce.com refused to connect. I added salesforce in CORS and csp sites Below is my code: <apex:page showHeader="...
0
votes
0answers
12 views

How Can I Reference A Font File In CSS For My Visualforce Page through Static Resources?

I have a .css file that I have zipped along with image assets and font assets. On the front end through my Visualforce page I am bringing this css file in as an <apex: stylesheet> Here's what I ...
3
votes
1answer
44 views

How to find out where a VisualForce Page has been referenced in order to delete it?

I wish to delete a VisualForce page. While trying to delete it, I am getting the following error: Error Message: I navigated to the VF page in setup and clicked the "Where is this Used?" ...
0
votes
0answers
29 views

Update a field if another has changes with flow

I want to create a flow which updates Opportunity.CloseDate when Opportunity.StageName is set to "Close Lost". I created a flow to archiev that, but somehow I must have a misunderstanding ...
0
votes
0answers
11 views

Visualforce page not displaying - showing as grey box in community

I have a VF page I need to display in a community but it is just displaying a huge grey box like below: I already checked the Visualforce page access settings in the community, and added the pages as ...
0
votes
1answer
25 views

A non foreign key field cannot be referenced in a path expression Error

Appointment: API Name Appointment__c Doctor: API Name Doctors__c I am trying to list all the records of the selected doctor public class AppointmentsController { private List<Doctors__c>...
0
votes
0answers
22 views

Visualforce renderAs=“pdf” issues with layout

So since Visualforce render as pdf uses CSS 2.1 I started to replace the SLDS with display: inline-block to try and get elements to display next to each other in their container. I've set width and ...
0
votes
1answer
22 views

How to align <apex:inputField> with CSS?

I am styling <apex:> tags with CSS but can't seem to align the inputFields correctly as they won't respond to padding, float:, or margin:. VF Snippet <!-- Form starts --> <apex:...
0
votes
1answer
21 views

StandardSetController Pagination problem when use WHERE

I try to make pagination for my table. When selectList change i take Id and want it in my Database Query, but if i add Where to soql the table isn`t displayed. My variable carId is null into if(setCon ...
0
votes
0answers
17 views

How i can clone all fields of objec SOQL [duplicate]

How i can clone all fields of object or clone object from SOQL ? is there a way to clone all fields? like * in SQL public class AppointmentsController { public Doctors__c selectedDoctor {get;set;} ...
4
votes
0answers
62 views

Lightning record page printable view or PDF

I need to create a printable view (or PDF) of a record's Lightning Page (think "tear sheet") that includes a compact "details" section, compact related list tables, and a custom ...
2
votes
1answer
35 views

Spring21 Guest User don't Save from Site Visualforce page

I'm truly desperate, I have this situation: After the Critical update Spring21 on Salesforce a guest user page don't save anymore. What I have: A Site with a A Visualforce page A Guest user profile A ...
0
votes
1answer
24 views

How can I access the value of an apex:repeat element?

I have a Visualforce page that generates a comma-separated list of organization (account) IDs. I'd like to pass that list on to a report as a parameter. In the example below, Organization Member is a ...
0
votes
0answers
10 views

Service Console Tab label showing “Loading…” i VFP launch from button

I have a visualforce page that is launched from a button on in a service console app. The page is rendered as a pdf and opens in a new tab, but that new tab forever stays as loading, confusing end ...
0
votes
1answer
30 views

Navigate from a custom Visualforce button, to a LWC page [closed]

Say I have a custom VisualForce Button in an account list view, Is it possible once clicked on that custom button, to be redirected to a LWC page? Thanks.
0
votes
1answer
23 views

How to update outputText by onchange selectList in VF

I newbie in SF, and i cant figure it out how to change my output text, when choose some option in select list. I`ve taken an error "Invalid bind expression type of Car__c for column of type ...
0
votes
1answer
12 views

How to populate additional Contact field into object

Good day, I have 2 contact fields on my Case Object, they both pull different contacts. How do I reference the second contact field in my controller & VF page? Assistance will be appreciated..
-2
votes
1answer
18 views

Javascript Remoting salesforce unknown property remote action

My VisualForce page: <apex:page docType="html-5.0" controller="JavascriptRemotingController" showHeader="false"> <head> </head> <body id="bd&...
1
vote
1answer
21 views

<apex:slds /> tag is breaking Visualforce page

Trying to render this HTML as PDF in Visualforce but it throws a Salesforce internal error. However if I comment out the SLDS tag it renders. Not sure what the conflict might be. <apex:page ...
0
votes
0answers
13 views

Updating The Email Change Verification URL

Am looking to update the verification link that is sent out when a user changes their email on our community (VF) storefront. I have checked the email templates and see the merge field, but cannot ...
0
votes
0answers
18 views

Redirecting to a url from a visualforce page

I am transformin a javascript logic in vf page into a apex controller. Here is the code: <apex:page standardController="Medical_Event_vod__c" extensions="SendinviteController" &...
0
votes
0answers
17 views

Getting error Error: Unknown property 'mypostApi1.cls_data'

I am making a callout and the received answers I want to show on the VF page here is my code Callout public class mypostApicallout { public static mypostApi1 fetchmynewapi() { http htp = ...
0
votes
1answer
21 views

Attempt to de-reference a null object while trying to display agents skills in vfpage

public class UpdateSkillsOfAgents { public List<ServiceResourceSkill> ServiceResourceSkillList; public List<ServiceResource> ServiceResourceList{get;set;} public Map<Id, ...

1
2 3 4 5
323