Stack Exchange Network

Stack Exchange network consists of 174 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.

0
votes
1answer
37 views

Data binding issue with wrapper class

This is a continuation of another question with code pared down as much as possible. I'm trying to create a series of pageblocktables on a VF page, each displaying some number of empty rows which ...
0
votes
1answer
20 views

Display VFpage content on Facebook [closed]

Is it possible to display the contents of a VFpage accessible on a public Site on to Facebook as a section?
1
vote
1answer
18 views

Is it a good practice to nest apex:actionRegion in another apex:actionRegion?

Well I am working on a visualforce page which has several sections with their own fields. The sections should be independent from each other. Now in one section I've got two operations: add and cancel....
0
votes
1answer
14 views

Site.com visualforce page refresh

I want to refresh a site.com visualforce page on submission of a form, adding an additional query string parameter, but when I try and get the current page url it returns the /apex/controllerName ...
2
votes
1answer
25 views

Rerender not loading new records for datatable

I am displaying custom object records in a datatable. I modify the data using the Salesforce API (i.e. outside the current page), and then when the user clicks a button I want to rerender the ...
0
votes
1answer
34 views

Bootstrap and Visualforce

I have a requirement to create a fairly basic page that will need to be printed as a PDF. My first thought was to use Bootstrap for the grid system. But I don't seem to be able to get my and the ...
3
votes
1answer
50 views

Variable binding issue with apex repeat

I'm a beginner to Visualforce - apologies if I've missed a thread that would answer this question but one has eluded me so far. This has been driving me out of my mind for a good week... I had a ...
-2
votes
2answers
24 views

How to set default value for record type on visualforce page?

VF Page: <apex:page standardController="Case" tabStyle="Case" lightningstylesheets="true" extensions="CaseController"> <apex:sectionHeader title="Clone Sample Request" subtitle=" ...
0
votes
1answer
22 views

How to make internal click to apex:commandbutton with setTimeOut and onLoad Or Document Ready?

Well, I've been struggling the whole day to make this happen. I have a custom button, that calls a custom VFP, this VFP has an apex:commandbutton, that sents an email (method from the controller) and ...
1
vote
1answer
106 views

OpenSubtab throws error when embedding a VF page in lightning component

Javascript on VF page: function openInSubtab(asd, asdf) { sforce.console.getEnclosingPrimaryTabId(function (r) { callBackopenTab(r, asd, asdf); }); } ...
-1
votes
1answer
31 views

How can I get meta data of a visualforce page which is used in a Page Layout of a particular object?

I have a question i.e. how can I possibly extract meta data of a Visualforce page inside a Page Layout of an object. For fetching the page layout I use following API request : https://ap4....
0
votes
1answer
34 views

When immediate=“true” values in list does not persist

What i am simply trying here is to add one blank wrapper object in wrapperList on click of add another button. Issue is when i set immediate=true in commandLink or in actionFunction, code adds one ...
-1
votes
0answers
16 views

URL to an individual list view

I have a bunch of list views that I wish to point my current Visualforce/Lightning pages to, I've tried using the following code to open a list view with a specific ID but the list view that gets ...
0
votes
1answer
35 views

Session Setting -“ Enable Secure and Persistent Browser Caching to Improved Performance”

I have a lightning button (Generate Output) on a SF community page where it called a VF page and performed a DML operation. But when I return back to the page, the status of Approval Stage=Generated ...
0
votes
1answer
45 views

Can not see data on VisualForce page for Big Objects data

I created a Visual force page for Big object data to be seen. However when i import data from workbench i am unable to see the full data in VF page. For some reason i can only 2 records out of 10 and ...
0
votes
0answers
16 views

Open button downloads a file instead of opening it in a new tab

I am working on a published application which keeps users' files. Users can open these files in a new tab or new window or download them. For open and download systems I have some issues. Whenever we ...
1
vote
1answer
71 views

page break in visualforce pdf after 10 records

I need to modify the below page to generate a PDF and modify the PDF exporting settings to export a table of only 10 records on each page. <apex:page standardController="Contact" recordSetvar="...
0
votes
1answer
16 views

How to use custom Setting values as a picklist in the VF page!

Scenario : As per the business requirement there will be a Picklist values in the VF page from which user can transform the Whole page in his preferred language. Please let me know if we can handle ...
2
votes
1answer
33 views

getParameters() returns null when passed a string that exists in the keySet()

I'm working with a standard controller on one of our organizations objects and have identified the parameter Id of a field we'd like to populate when a new record is being created. in the controller ...
0
votes
0answers
64 views

Redirect using Pagereference in Apex in Lightning Experience on Visualforce page

We have a managed package in appexchange. When user install the app and goto Default tab of our app. We have Apex redirect (using PageReference with setRedirect to true). It works fine in Classic but ...
0
votes
0answers
19 views

How to check the value of list<String> in visualforce [duplicate]

I have a List on my controller named as public List<String> userVoted {get;set;} In my Visualforce page, I am going to check the List if it has value of specific string so that I can assign the ...
0
votes
1answer
37 views

Visualforce error related to effective dated currency

Question:Create a Visual force page which displays a variety of output fields Error: Currency fields on entities with effective dated currency are not supported. Code: <apex:page ...
0
votes
1answer
22 views

How to display a field in the Lead layout only when the field is not blank?

In the lead object I need to display a custom text field on the lead page layout ONLY IF field is NOT blank. Is that feasible in Salesforce and how it can be achieved?
0
votes
1answer
21 views

Canvas adapter / Tableau dashboard

Using the canvas adapter for SFDC, I am trying to embed a Tableau Dashbaord into the account page. Below is the code i am using. The problem is that it is not properly passing the parameter. <...
0
votes
0answers
18 views

Add Contact Roles Page at Closed Lost?

We need reps to add Contact Roles to an Opportunity when the Opportunity is moved to Closed Lost. Is there a way to open a new screen with the 'Add Contact Roles' Screen or a similar VF page when the ...
1
vote
1answer
16 views

How to save list of text from visualforce to controller?

I am trying to populate a list of answers. I have a list of questions and an empty array of answers that I pass to a visualforce page. The code in my visualforce page is: <apex:variable var="index"...
0
votes
1answer
27 views

How to embed external (live) charts to Visualforce page?

I tried doing the following in Visualforce Page: <apex:page> <div class="embed-container"><iframe src="https://fred.stlouisfed.org/graph/graph-landing.php?g=m8jU5" scrolling="no" ...
0
votes
0answers
22 views

Add rows on button click without loosing input values from prev row

I'm trying to make a table with add row functionality. The process is next: User works with one row, put data in input fields, and then add another row. The first row must contain data that user ...
0
votes
1answer
14 views

Can rendered attributes handle Set .contains method?

I have a set named "voted" in my controller and I want to use that set on my visualforce to check if the user already voted on the idea. public Set<String> voted = new Set<String>(); I ...
-1
votes
0answers
19 views

Disable an apex commandbutton using a javascript method

I have few lines to show some buttons on the screen. Two of them are Cut and Copy. Ideally, if none of the files in my Salesforce app are selected, Cut and Copy buttons should be grayed out. However, ...
0
votes
1answer
15 views

community view report via a VF page

Could a report exposed to a SF community (Not Plus), via a VF page? as below; <apex:page id="ccs" title="Customer Case Summary" cache="false" showHeader="false" sidebar="false" ...
0
votes
1answer
34 views

How show selected RecordType in custom Visualforce Page?

I had to override the New button to use a clone of the record page of a Custom Object, so far so good, now I need to be able to catch the record type selected like in the original page. Original: ...
0
votes
1answer
23 views

Update record page after record is updated by calling external API

I have trigger on contact which validates phone by calling external API. To be able to call the the API from trigger, I'm using future annotation. The callout method writes the result to custom field ...
2
votes
1answer
64 views

On click lightning exp shows Uncaught (in promise)

I am using Lightning Experience, I created an App and I set Page D to be my first page when I access the App, there I have a link to Page E. If I log out and access SF again and click on App Launcher ...
-1
votes
0answers
16 views

Redirect a VF page after a CSV is created

i need some help as I am trying to redirect a VF page to a List view on a custom Object, first i will show what I've done on the VF Page: <apex:page controller="SageCsvFileController" action="{!...
-1
votes
0answers
18 views

My package field name is conflicting with one of the sandbox field name [duplicate]

In my code, I want to retrieve the value of the sandbox field but the code is picking up the value from the package field. how can I achieve this? the fields are on the opportunity and these fields ...
1
vote
1answer
19 views

How to redirect to a custom VFP after a Custom Object record is created (Standard way of insert)?

well, pretty much as the title says. I need the user to be redirected to a Custom VFP when a new record of a Custom Object is created, additional to this I need to be able to send the Id to that ...
3
votes
1answer
32 views

Any way to pass parameters to apex:dynamicComponent?

Related to this question How to keep components out of the Visualforce view state when they are not needed?, I have many apex:dynamicComponents in my page that I want to put slightly different content ...
0
votes
1answer
10 views

Rerender of many outputpanels

What is the difference between rerendering one wrapper outputpanel or several outputpanels inside of wrapper? What is the best way?
6
votes
1answer
67 views

How to keep components out of the Visualforce view state when they are not needed?

The view state problem we mainly run into is not properties of the controller using it up (as we use transient heavily) but the component tree that the Visualforce tags generate using it up. That is ...
1
vote
0answers
19 views

Issue rendering pdf on VF

I am not able to render pdf files of size greater than 1.5 Mb on VF using the below article. Only blank screen appears on load/preview opposite to successful pdf generation in case of <1.5 Mb pdf ...
0
votes
0answers
16 views

How to use a ContentVersion link in another org's visualforce page?

I try two ways (public link and ContentVersion Id) to display image from another org: <apex:image url="https://my.salesforce.com/sfc/p/#f400000567hz/a/f40000005ZIe/XJ0RMkEnnh6Sj67FN....
0
votes
1answer
19 views

Show email addresses as hyperlink except the comma

Email Address : bob.marley@abc.com , sia@cheapthrills.com Currently we are displaying as plain text. Requirement : To display each address as clickable hyperlink . Current code: <tr> <...
0
votes
0answers
83 views

Open VF page with parameter in Lightning using Button/Action

Currently i have a Detail page button URL (using URL hack) on Lead. https://testorg--test1--c.visualforce.com/apex/Lead_form?leadId={!Lead.Id} But when i use this button in Lighting i want it to ...
2
votes
1answer
38 views

Combine two lists in to one visualforce table

I Have to lists with different records but using only one object. Like Example Apex Controller: List<Commission_Setting__c> minChargeOTC = [Select Id, Commission_for__c, Rate__c From ...
0
votes
0answers
12 views

How can I change a VF page URL in the Lightning Experience via javascript

I have a React app that runs with as a Visualforce tab in the Salesforce both classic and lightning version. The app router works well in the classic, but it does not work in Lightning Experience. ...
0
votes
1answer
8 views

Site profile doesn't appear to have access to FirstName or LastName on Leads

I have created a public site to create Lead records. It seems as though the site's profile has access to the composite Name field but not the FirstName or LastName fields. Eg: //This doesn't Work ...
0
votes
1answer
50 views

Pass method from controller to javascript

Could you please to help this? I'm very new with javascript.I have tried many way but it doesn't work. I have problem with javascript function I have tried to call method from controller but it doesn'...
0
votes
1answer
16 views

Embedded VFP not showing on popup

Since no one has suggested a better solution to my question I'm currently trying to include a custom component into a standard layout using a visual force page. I was able to create the VFP and add ...
0
votes
0answers
31 views

Pass Map<String, List<String>> from apex to javascript

I want to pass a Map<String, List<String>> from apex controller to javascript. Here is my approach, I am using javascript remoting for it but it's not working. controller function @...