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
1
vote
1answer
22 views

If I click list button 'sync', I want to move on to the view screen of the checked record

I want to check the record as shown in the next screen and move on to the checked record screen when I click the sync button. But the screen doesn't go over and it keeps stagnating. Here's is my Code ...
0
votes
0answers
31 views

Output field question

I am working on the Account VisualForce page, and on that page I have a custom field that is from a different object. I am able to display that field from the different object but right now it is in a ...
0
votes
0answers
21 views

Why is this vf page getting the wrong listview in production but the correct one is sandbox?

The following VF code displays the correct list view in sandbox but in production it just shows the "All" list view for the same object. I am using the correct list view id for prod but it ...
0
votes
0answers
9 views

Unable to open Visualforce page from LWC on Salesforce1, it redirects to web page and asks for password. Works well in IOS issue in Android

I am trying to open a Visualforce Page in Mobile device on a button click from LWC. I am using function navigateToVFPage() { this[NavigationMixin.GenerateUrl]({ type: '...
-1
votes
0answers
13 views

Visual force component for history tracking on candidate object [closed]

I need to build visual force component that should track history of candidate object based on current page id
1
vote
0answers
28 views

“The value of a parameter contains a character that is not allowed or the value exceeds the maximum allowed length”

I'm getting this error when trying to override standard button of a custom object that is part of a managed package: "The value of a parameter contains a character that is not allowed or the ...
0
votes
0answers
26 views

When creating a visualforce that is called by a button it gets that name in the console case and I can't remove it

When creating a visualforce that is called by a button it gets that name in the console case and I can't remove it. What would be the solution. <apex:page standardController="Case" ...
1
vote
1answer
24 views

Create Pdf from visualforce page with button

I create a PDF with button at the account record. That works good, but now I want to pass information from the account record into my visual force. I tried it, see below, but the (AName) account name ...
0
votes
0answers
23 views

Add Child Nodes in JSON

I have a requirement to get Parent-child-grandchild-great grand child records in JSON. I could able to successfully get Parent-child records in the JSON and the logic is as follows: public with ...
0
votes
0answers
12 views

Command button should run a screen flow in modal dialog

Below I have a very simple code for example, if I click on a button on visual force page it appears a new page with the flow. But I want that when I click on the button the modal dialog starts and ...
0
votes
1answer
28 views

using custom HTML in Salesforce

So in the past couple of weeks i have been making moves as to learning how to work with Salesforce. Now I have been able to use the Apex to insert Data and some other things even to Create The ...
0
votes
0answers
14 views

Access the cookie set by one of my Visual Force page in a lightning component

I'm trying to access a cookie I set in a visual force page in a lightning component , but Im unable to find a way to do so. what I notice on my browser is that cookie is set a different domain for ...
0
votes
0answers
13 views

JS Remote function not getting called. Trying to implement functions chaining using JS remote functions

<apex:page showHeader="true" sidebar="true" standardStylesheets="true" applyBodyTag="false" docType="html-5.0" controller="...
0
votes
1answer
28 views

Visualforce Error The dependent picklist requires its controlling field on the page

hope you are having a good day! I could find two links related my questions. Visualforce Error : The dependent picklist 'Class' requires its controlling field 'Brand' to be present on ...
0
votes
0answers
19 views

Visualforce page error - Invalid Id: true

Hope all are doing good! I'm trying to open my visualforce page but I'm receiving an error called : invalid id:true My page is working fine on yesterday but today Morning I'm receiving this error I ...
-1
votes
1answer
21 views

Add a field from a different object on a VisualFoce page

I am working on the Account VF page that has a custom controller (AccountPageController). On this page I would like to add a field (customField__c) from a different CustomObject__C. What I have tried ...
4
votes
1answer
804 views

Chrome 92 breaks button actions (Reset Password, custom VF) in SFDC - Known Issue workarounds

2021-07-26, hundreds of orgs reported being affected by this Known Issue Summary As of Chrome version 92, customers may experience issues when working across the Salesforce platform. This impact may ...
0
votes
0answers
33 views

Capture auto logout due to inactivity in Salesforce

I need to display some alerts when user is getting logged-out of Salesforce due to inactivity.When there is logout getting happened, I need yo send a message to the component displayed in utility bar ...
0
votes
1answer
46 views

(Case)controller.getRecord(); - Returning Null in the visualforce page

I'm trying to get the record that starts a visualforce page but it's returning null. Can anyone point out the problem to me? Visualforce: <apex:page standardController="Case" extensions=&...
0
votes
0answers
17 views

How to use CSS to break a line on a repeating substituted value?

I have a bit of Visualforce code to substitute a line-break in for ; values from a multi-picklist field. <table> <apex:repeat var="qr" value="{!questionReponses"}"&...
1
vote
0answers
24 views

Visualforce table for aggregate result grouped by CreatedBy.Name

I'm trying to create a custom report table in Visualforce based on an aggregate result retrieved by the SOQL: SELECT CreatedBy.Name, Description, SUM(Value1), SUM(Value2), SUM(Value3) FROM Object__c ...
0
votes
1answer
18 views

Can we post <apex:form> to an external website, so that another web page can consume this apex:form?

There are 2 web pages, one is salesforce visualforce page, and another one is some other web page hosted on a website. Both need to interact in such a way that : Form details from salesforce ...
1
vote
1answer
28 views

Show records based on multi picklist value on VFP with Search button [closed]

Please can you check my code and tell me where I have gone wrong? Object Name - course_master__c, multipicklist field name - course_name__c. I want to create a SEARCH button based on the multipicklist ...
0
votes
1answer
19 views

Not able to pick value from apex:inputTextarea using javascript

I am trying to pick value in apex:inputTextArea field. There are two input fields. One is apex:input and other is apex:inputTextarea. Here is my visualforce code - <apex:form > <div class=&...
2
votes
1answer
20 views

ActionFunction in custom component wrapped in repeater?

I've been having a problem with some of my code. I won't post the whole code, since the page is quite complex, but here's a simplified version. Essentially I have a visualforce page "TestPage&...
0
votes
1answer
22 views

How can I pass a JSON from an Aura Component to a Visual Force page?

I have an Aura component that download a JSON from an external REST service and I have to render the JSON in a PDF. How can I pass the JSON directly from the aura component in the visualforce page ...
-2
votes
0answers
41 views

Problems encrypting and decrypting query string parameters in Visualforce page

I am working on a requirement to securely pass parameters from a visualforce page to another visualforce page hat is hosted on a force.com site. However, I keep on getting one error or the other ...
0
votes
1answer
18 views

VisualForce Email Template - Error: Syntax error If Condition

Getting Error: Syntax error when i tried to add the below condition in Visual-force Email Template with dynamic variable {!IF(recipient.RecordType.Name != 'Guardian',{!relatedTo.Name__c}, {!relatedTo....
-1
votes
1answer
22 views

Redirect to a VF Page hosted on Force.com site with Cookie Data

I have a requirement to pass information to a visualforce page hosted on a Force.com Site in a secured manner, and not using query string. I had used cookies for this purpose. However, on the host ...
0
votes
1answer
44 views

How to write Wrapper Class and using Visualforce page to display multiple objects data. Best Practises [closed]

I want to display 2 objects like Job Deal object(Job Deal Code, Job) and Recruiter Objects records fields in a single table. How to write VF page using wrapper class
0
votes
1answer
29 views

Access Apex variable In script in VF page

I am not able to Access the apex variable in script in vf page . It is showing empty while debugging the code.Hope any ony can help me here.Here is the code below: VF Page: <apex:page ...
0
votes
1answer
21 views

Validation Error on Inbound Change Set - What am I missing?

I'm getting Validation Error on Inbound Change Set for this page, but I've tried both closures it asks for and I get the same error every time when promoting to prod. Element type "input" ...
0
votes
1answer
31 views

iFrame issue in Visualforce Page: Uncaught DOM Exception - blocked a frame from accessing a cross-origin frame

I'm having an issue with a VisualForce page I'm putting a Lightning Component on. The component simply consists of an iFrame. When I try to use the site I want to use as the src for the iFrame, it ...
0
votes
1answer
16 views

Display External Webpage in Custom Record Page

I need to add an external webpage to a record page of a custom object. I have reviewed information here: Display External Webpage in Lead. I am testing in my developer ORG and it is pulling in the ...
0
votes
0answers
35 views

How to pass a lot of data to Visualforce page

I have Aura component which need to pass a lot of data to Visualforce for PDF rendering (two tables). What is the best way to do it? I guess it is not a good idea to pass data through url parameters ...
0
votes
1answer
22 views

Autocomplete when using list in apex:inputText

Is there any way to change the order of autocomplete when using list in apex:inputText? The variable specified in list uses LIST<String> to store the characters. Apex--------- List<String> ...
-2
votes
0answers
35 views

Can we pass parameters to a visualforce page in JWT format?

The requirement is to pass parameters to an external site page so that they remain secured. The suggestion is to send the parameters in a JWT Format. To mock-up this process as a Proof of Concept, I ...
0
votes
0answers
31 views

Can we get the response from an Event fired inside Aura component? [duplicate]

The code below is from a VisualForce page $Lightning.use(“c:myLightningApp”, function() { $Lightning.createComponent( “MyComponentName”, {}, “divName”, ...
0
votes
0answers
9 views

Einstein Chat Bots : Accept values on calling of chat bot from external website

I have a requirement where I need to present chat messages on the chatbot, such that messages are conditional, on the basis of the inputs received from the external website which has called the ...
0
votes
1answer
48 views

Apex/VF error - Need apex guidance

Invalid type: Territory Error occurred loading controller 'LogACallVF' for page logacall Users are getting this error when hitting the button that enables this VF page all of a sudden, it started a ...
1
vote
1answer
37 views

iframe on aura component not displaying for users other than me

I have a flow that is invoked by a button on the opportunity. It's an on screen flow that will display a dropdown with two options. One of those options, if chosen, will display an iframe (calendly) ...
0
votes
0answers
23 views

HTML and PDF rendered visualforce page format column width differently

I have a visual force page rendered as PDF. . The page is a collection of HTML tables in which text is printed in HTML cells. In some cases, the text is too large, the table and its text gets out of ...
6
votes
2answers
110 views

Best practises with Lightning Message Service

As an ISV, I need to establish communication between LWC and Visualforce page. I am planning to leverage LMS and I have 2 questions: Which are the best practices regarding Lightning Message Channels? ...
0
votes
0answers
29 views

Google Analytics doesn't work on LEX

I have an app which uses Google Analytics working on React on Visualforce. When I opened app in Salesforce Classic, it works; when I see DevTools > Network, show "collect?v=1..." on Name ...
0
votes
0answers
13 views

Tracking distance between Geolocation position object and custom Geolocation field in Visualforce

Trying to call Geolocation's "clearWatch" method within the "watchPosition" success callback function once the tracked position is within a certain distance from a delivery ...
0
votes
1answer
21 views

Send event to iframe of different origin from visualforce in lightning

I have a visualforce page where I am displaying an application inside Iframe. To load that application I need to pass a token from visualforce page to it. While sending the same, I am getting error: ...
0
votes
1answer
24 views

Pass variable created in a flow to a VisualForce Page

I have a flow that is run when internal users click a button. This button will set a variable in the flow for: first name, last name, and decoded email (for url). I created a VF page that is used to ...
0
votes
0answers
20 views

Filter Visual Force Report Chart to only show data related to current record page?

I am new to Salesforce and Apex in general, and I am trying to figure out how to filter the report charts on a Visual Force page to only show data from opportunities related to the Account record that ...
1
vote
1answer
29 views

PDF generation failed. Check the page markup is valid. Issue with datatable and columns tags

When rendering a visualforce page as PDF, I'm running into the error above often and have been unable to figure out what the error is. Through process of elimination, I have been able to narrow down ...
0
votes
1answer
17 views

ReCaptchav2 check not working when enabling submit button

I'm developing an app on my Force.com site (https://desaeveris-unav.cs107.force.com/rentawayapp) and I'm trying too add RECATPCHAv2 to my create account form. The goal is to keep the 'Register' button ...

1
2 3 4 5
326