Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

-2
votes
0answers
12 views

Import Quote Line Item CSV using Apex & VisualForce Page

My requirement is to be able to import quote line items into a quote using a CSV. I have written the following code but I'm unable to get it working. The code shows no errors but when I try to import ...
3
votes
1answer
26 views

What is wrong with my Flow Interview?

I am working on including a Flow via Custom Button, and so I created a Visualforce Page which includes a <flow:interview> component and references a Flow.Interview on an extension. Page <...
0
votes
1answer
117 views

I can not update my data

Image of my object in salesforce I want to update the information contained in my "var" variable in my "Principale__c" object, using this function public void DMLOperation () { List <...
1
vote
0answers
18 views

Apex param or Action Function doesn't work

I would like to get param in Visualforce page. But, I can't get. 1.User input text, and click button in Visualforce page.  User add rows to input text.(I used javascript) 2.In next page, we want to ...
1
vote
0answers
27 views

Salesforce Themes and Branding not showing in Lightning App

I have Codey Canyon theme enabled (the orange one), but a Lightning App which is being used in a Visualforce page is still showing the standard blue theme. Visualforce page <apex:page showHeader="...
0
votes
1answer
59 views

Unable to customize record detail page with related list hoverlinks with out using detail tag

Currently, I'm working on overriding standard pages to visualforce on case object which has different record types. My problem is overriding standard layout to custom vf page for record detail page. ...
3
votes
2answers
73 views

How to read attributes in LWC when using $Lightning.createComponent

I am trying to pass the recordId as an attribute to a lightning web component used in a visual force page. However, I am struggling to find how I read the attributes set in the $Lightning....
1
vote
1answer
29 views

How to refresh contents of modal on button click? (VF Page)

I'm using a modal that has as input fields object fields linked to the controller. After filling the modal I send the "experience" to the controller and save it and send back an empty singlExp so that ...
1
vote
1answer
56 views

How to pass values in hidden from controller to VF page

How we can pass some boolean value from apex controller to visualforce page as hidden parameter and access that value in that visualforce page? For eg. In apex if we set flag = true after successful ...
0
votes
0answers
12 views

Creating custom list view for Knowledge object

I have to create custom list view for knowledge article object in visualforce and lightning. I saw in the document that lightning:listview does not support knowledge object. Can we create it in ...
-1
votes
0answers
13 views

In Salesforce lightning(classic), Is there any way to get an event when primary tab is clicked?

we have a lightning app in a visual force page container. I have a use case where i need to capture an event when user clicks on a particular primary tab. Can you guys help me if there is any other ...
0
votes
0answers
19 views

Rerendering component has huge increase on view state

I'm working on a page with a very large dataset. There is a part of the page that downloads the report as a CSV file: <apex:outputPanel id="downloadCSVSection"> <script> ...
1
vote
0answers
13 views

Create Child Record from List Button

I am trying to create a child record from a List button of a custom object that has a Master-Detail relationship with the Opportunity object. Everything works, except I need to pull in the ...
0
votes
1answer
54 views

I have added a vf page(displays an error message) in pagelayout. I don't want it to be displayed when the case has attachment

I have a vf page that displays an error message. On Case object when I edit a case, and save it with an attachment, I don't want it to display that vf page. VF Page Code: <apex:page ...
0
votes
0answers
14 views

How to edit an element on a PageblockTable via Button

I have a list of products with their prices and I would like to be able to apply discounts to each product, but I'm not able to get the discount and the row number when clicking the button. I get an ...
1
vote
1answer
39 views

How to pass an apex parameter in a <button type=“button” />?

What I want to do is send an apex parameter with a and not a command button (in my vf page) and it's because I want to be able to call a modal and I didn't find a way other than using a I forgot to ...
0
votes
0answers
10 views

getEnclosingPrimaryTabId: Cannot get workspace from frameId: 066c0000000GJ4w getting this error while clicking on link

Onclick not working and observed the error in back end as "getEnclosingPrimaryTabId: Cannot get workspace from frameId: 066c0000000GJ4w". Below is the VF page : <apex:column headerValue="...
1
vote
0answers
15 views

Problems with Salesforce Console Integration Toolkit

My package has a VisualForce page that is used in the OpenCTI Softphone that includes <apex:includeScript value="/support/console/45.0/integration.js"/> I use it for opening records and open ...
0
votes
1answer
34 views

Help with IE VS Chrome css issues

I have an input field and label which I use the floating label technic. In Chrome\ Edge\ FireFox It works great but on IE it doesn't. When I test a field via IE I see that it take my label and put ...
0
votes
0answers
11 views

Post Chat Form in Snap-ins

Post Chat form in Snap-ins not working, Whatever url I give in Post-Chat URL its giving me "Refused to display 'https://www.google.com' in a frame because it set 'X-Frame-Options' to 'sameorigin'." ...
1
vote
0answers
52 views

Controller works in preview but not in org

I have a Visualforce page that incorporates an app and a component. When I try the VFpage in preview, everything works. But not in Sales cloud when i connect the initialising VF-page to a 'List Button'...
-5
votes
0answers
48 views

“List index out of bounds: 0” [duplicate]

In my first method I want to retrieve the id of the emails found in my object My second method allows me to apply. My first function and call it in visualFroce. In VisualForce, I find this error: "...
0
votes
2answers
19 views

External JS file in visualforce page not defined

I feel like I'm missing something trivial here, but who knows... I have a Javascript file with two simple methods. This file is being included by an tag. Signing.JS function ...
-1
votes
0answers
40 views

System.TypeException: Invalid date: 2019-30-04

If I changed the Date in Salesforce Org then getting the 'Invalid date Error'. It works fine if I select the English US Locale but If I select other than English US Locale then Displaying error while ...
0
votes
0answers
12 views

how to show vf page when community is deactive

when my community is deactivated I want to show custom vf page, already changed the inactive page then also it's not coming can anyone help me?
1
vote
0answers
26 views

The CheckMarx security scanner gives error on Client Potential XSS vulnerability [closed]

In the code scanning, I am facing the Client Potential XSS issue. Scan Result: Can anyone please provide me any solution on this? Thanks, Ragav
0
votes
1answer
18 views

Pass the parameter from the VF page to command button action

I have the VF Page and through a custom button I am passing the parameter To the VF URL as https://abc--c.cs41.visual.force.com/apex/Send_Env_Email?OppId=00655D0Z8 I want to reterive this within the ...
0
votes
0answers
28 views

Set apex:variable from javascript

I have a question: I need to set the value of an apex:variable (test) equal to a javascript variable (result). You can see my code below: window.onload = function(){ console.log(...
0
votes
1answer
18 views

Draggable = false link in lightning-out - aura components

When I set a link to draggable = false in aura component (using lightning-out), the attribute is somehow being reset to draggable = true during compilation. The link is draggable. Why is the ...
0
votes
0answers
28 views

How to open native app(Barcode Scanner) using visualforce page in salesforce 1

I am working on a Salesforce 1 mobile app. I have a business requirement to open external App (Barcodescanner) in SF1 app. I have tried below methods. * sforce.one.navigateToURL(); * window.open(); ...
1
vote
1answer
17 views

How to Implement “fluent constructors” inside visualforce page data iterator?

I am trying to put together a custom controller class implementing the fluid interface builder pattern. Said class does compile, and my question is how can it be implemented inside a VisualForce page'...
0
votes
1answer
28 views

visualforce currency input field

I have a custom web to Lead form where I need to get Annual revenue from the form, trying to get with the following field. However I am unable to get the data in the record under the field "...
1
vote
1answer
38 views

Onclick not working in visual force page if the case subject field having single quotes

We have developed an custom email section to have the emails in sequential order when a case is cloned (as this functionality is not there with standard emails section). Now we are facing a strange ...
0
votes
0answers
14 views

Inserting a ContentVersion using Angularjs $http + Chatter Rest API

I have been trying to insert files using Salesforce Chatter REST API, but its been documented only for curl. I am unable to find how to do the same in Angularjs using $http with visualforce. I am ...
0
votes
0answers
14 views

Passing values between Site page and Lightning component

I have created a site page in salesforce, in which my users enter their input values. Now I have a lightning component hosted in my community. Is it possible for me to get the values entered in the ...
0
votes
1answer
33 views

CSS for Excel Accounting Format?

I am working with a data table in Visualforce, and I am trying to get the columns with currency values to format similarly to how the account format looks in Excel, where it will align the dollar ...
0
votes
1answer
21 views

Using lineitemsort.jsp - VF Javascript function not defined

Salesforce uses the lineitemsort.jsp to reorder opportunity and quote line items. I am trying to create a visualforce page with Javascript fucntion (and apex controller) that includes the ability to ...
0
votes
1answer
72 views

We want to get a list of lead and opp. that have the same date (custom fields) in the record as the actual shown lead

What we did so far... We created a visual force page that calls a class and added an extension to get the ID. We got some Error :) (We try to get the ID for the currently displayed Lead, which ...
1
vote
1answer
46 views

how to display all the elements of a table?

I am trying to display all the information of my csv file. Except that in my visualforce page, he shows me the last element of my table. public class ImportExcel { public String fileName{get; ...
0
votes
1answer
50 views

How do we convert pdf in html format in visualforce page?

Following code takes me with pdf but i wanted to view this pdf as html because in my pdf some buttons are clickable and i wanted to capture that click event from pdf so it is not possible in pdf and ...
0
votes
1answer
17 views

How to implement “Get Locator” keyword from CumulusCI library?

Every implementation of Get Locator keyword I am trying is resulting into: AttributeError: 'dict' object has no attribute 'format'` please educate me with respect to the correct implementation and ...
0
votes
1answer
34 views

file upload through VF page to external ftp site?

I have a request to increase the file size upload limit from existing 5 MB to 25~50MB. The functionality currently uses a VF page to upload the file to an external ftp server. We changed the ...
0
votes
2answers
60 views

Navigating to VF page with e.force:navigateToURL shows as classic

I am navigating to a visualforce page from a lightning component using: $A.get("e.force:navigateToURL) but when the user gets to the vf page it is styled as classic, even lightningStyleSheets="true". ...
-1
votes
2answers
38 views

How to display email href link as bold based on status field value in visual force page

We have custom emails section for the case object. I want to display the email subject hyper link as bold if email status is NEW. for all other status it should be in normal font. Could you please ...
-2
votes
2answers
37 views

visualforce page phone number should have 10 digits

I am trying to validate phone number where customer should enter 10 digit number. I am unable to get any alert here even the phone number is having less than 10 digits, any idea?. <apex:inputText ...
1
vote
1answer
20 views

CommandButton in visualforce component not triggering action in controller

I have a few command buttons that are not calling the action as defined in the controller. The 'showPopup' method works, but the others do not. Log files show that the methods are not being invoked at ...
1
vote
1answer
48 views

List view button without standard controller

Is it possible to create a list view button without a standard controller? My requirement is, I want to create a List view button for any object. In the current scenario, I have to write the same ...
0
votes
1answer
83 views

Same Date, self reference? Work-around ideas

I have got a lot of research and recherche done as this simple where clause doesn't work because of it self-reference. I want to display all leads and opportunities who have the same "datefield x" as ...
0
votes
0answers
45 views

How to copy data to text fields when checkbox is checked

I have a little challenge which I'm trying, I want whenever the checkbox is checked I want to copy the values into input text fields in visualforce page. So here I have multiple rows and ...
0
votes
1answer
30 views

set colors or different styles for different options on Apex:SelectOptions tag

How can i put some style on an <apex:selectOptions> tag on a Visualforce Page? I have to change the font color of the options depending on one param, for instance if the param goes from 1 to 5, ...