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.

1
vote
1answer
25 views

Unable to use variable of javascript remote method variable in chart.js code. It is coming as undefined

I have to use list of accounts as labels in my chart. In order to fetch list of records I have used js remoting. I am able to fetch but not use within chart.js labels. Here goes my vfp :- <...
0
votes
1answer
30 views

I want to display bar chart of 10 accounts with maximum contacts. each bar chart should be clickable and redirect to concerned account

I am able to show a bar chart using static data in vfp - apex. However there are mainly two problems - 1. getting dynamic data of no. of contacts in each account and 2. making each bar clickable and ...
1
vote
1answer
43 views

Recaptcha in salesforce community

I have tried out the recaptcha in lightning component using VF page as iframe and it is working absolutely fine,but when i tried that component in salesforce community it's not working. I added the ...
0
votes
0answers
33 views

Javascript on rerendered outputpanel not working in production

I am using an action function to rerender an output panel in my visualforce page after i fetch some data from the controller, and then i manipulate it with some javascript (also inside the same output ...
1
vote
0answers
14 views

Reload Visualforce page on session lost

Im trying to reload a Visualforce page when session is lost, due to another login, and sessionId created in a different browser tab. I have code that makes constant calls to the controller methods, ...
1
vote
1answer
31 views

How to get Community Url in a Visualforce email template

Background I would like to display the Community Url within a visualforce email template. Standard templates use: {!Community_Url} But I cannot find an equivalent field for visualforce email ...
1
vote
1answer
48 views

How to generate pptx files with the VisualForce page and Apex Controller

Unable to open the generated file in OpenOffice unfortunately. My requirement is to generate a ppt file using dynamic data from Salesforce. Here is my snippet of Visualforce Page. <apex:page ...
0
votes
2answers
44 views

Dynamically set columns on pageBlocksection and pageBlockSectionItem?

Page : <apex:page id="ContactDetails" extensions="ContactsController" standardController="Case"> <script> function showFieldsOnClickAction() { showFieldsAction();...
2
votes
0answers
22 views

Yes/Maybe/No buttons not appearing for ICS calendar visualforce email attachment

Background I am using <messaging:attachment to generate a .ics calendar invite as an attachment as part of a visualforce email template. <messaging:attachment filename="invite.ics" renderAs="...
0
votes
0answers
24 views

Copying fields data when checkbox is checked in multiple rows(Visualforce Page) [duplicate]

I have challenge I'm working on a visualforce page 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
0answers
31 views

Open Add Product page in lightning

I want to display the add product to opportunity price book page(/p/opp/SelectSearch) in lightning. We override the opportunity edit screen with VF and then redirect to this page: ...
0
votes
0answers
17 views

How to validate the <apex:inputfields> on form submission and show error using SLDS?

I am using SLDS in a VF Page and I am referring to this link here to show error. The problem is the error is displayed on page load because I am not removing the Slds-has-error class. But, how do I ...
0
votes
2answers
18 views

Multiple Child Records from Parent Related List: Url No longer exist

I need to create Multiple Child Records from Parent Related List but i get the Error: "URL No Longer Exists" but the data saved in the database. Also, it seem that the Parent Id does not populate ...
4
votes
1answer
132 views

Is it possible to add Lighting Web Component in the Visual force Page?

Create one Web Component and want to that in VF page, Is this possible?
1
vote
1answer
36 views

Command Button not saving!

The command button on my Visualforce page is not saving edits to the record. Any help is appreciated! Visualforce Pg: <apex:page action="{!redirectToPartnerships}" extensions="EditExtensions" ...
0
votes
0answers
16 views

How to distinguish the Chat Button with Einstein bot and without bot?

I'm trying to make two picklist, using visualforce and apex controller. In the first chat buttons without Einstein bot in the second one with Einstein bot. This is an example of how it should look: ...
0
votes
1answer
23 views

Show error when user has entered value and removed it or field is empty while submitting the form in SLDS

I have a few input fields on the layout and all of them has slds-has-error class to get the red box along the field and displaying field is required text beneath the field. However, my problem is, ...
1
vote
0answers
21 views

Validate multiselect pick list with jQuery [duplicate]

I am trying to validate multiselect pick list(if no selection is there then it should pop up an alert) through jQuery since we can't make it as require with visualforce page(actually we can but ...
0
votes
0answers
30 views

Use the Salesforce Lightning Design System to Style Visualforce Pages Issue

Working through the Visualforce Mobile module I want to do an exercise (3rd unit) that consists of displaying the contacts their names and phone numbers. <apex:page showHeader="true" sidebar="...
0
votes
1answer
24 views

Uncaught Error: Mismatched anonymous define() module. When using RequireJS in a Visualforce page

Background RequireJS is a dependancy for another package I want to use in a Visualforce page. I have uploaded RequireJS as a static resource. <apex:page showHeader="false" standardStylesheets="...
2
votes
1answer
26 views

Showing error using SLDS Has Error on Apex:Inputfield with Aria-describedby

I am using the SLDS in visualforce page and trying to display error next to the component by following this. But aria-describedby does not work with <Apex:inputfield> and throws error. Here's ...
1
vote
0answers
26 views

How to print iframe in Lightning Component

I have a Lightning component which has an iframe to a visualforce page: <aura:component implements="force:lightningQuickActionWithoutHeader,force:hasRecordId"> <iframe aura:id="myFrame" ...
0
votes
1answer
19 views

What is the URL to a Visualforce page without Sites

I have created a Visualforce page: CustomVisuaforce.page <apex:page> <h1>Custom Visualforce Page</h1> </apex:page> I want to access to page from within Salesforce ...
0
votes
1answer
25 views

rendered issue with actionsupport

I'm trying to rendered a commandLink base on a variable inside the controller. When I use the rendred like below, its everytime get "false" value, and I cant see it (rendered=false) My variable's ...
0
votes
1answer
32 views

Dynamic initialization of custom visualforce components [duplicate]

Visualforce has initialization of visualforce components in apex. For example MyCustomComponent component: ApexPages.Component customComponent = new Component.c.MyCustomComponent(); Is that possible ...
0
votes
1answer
24 views

How do I remove this field validation error?

We are updating the Force.com page we use for performance reviews with new fields. I created all the fields in my SF org, and updated the VF and Apex code so that they only reflect the new fields we ...
1
vote
1answer
26 views

How to control the page size of the PDF generated from Visualforce page

Background I am generating a PDF using this visualforce page: <apex:page controller="ExampleController" renderAs="pdf" applyBodyTag="false"> <head> <style> ...
0
votes
0answers
33 views

Setting page orientation when VF is exported to excel

I am trying to format excel file that is exported for VisualForce page. I am able to export the data in a table with cell width that I need. For printing, I want to set the page orientation:Landscape ...
1
vote
0answers
15 views

Salesforce Visualforce Email not tracking even with HTML body

I have a custom button in an opportunity that sends an visualforce email with an attached quote to the client. I have everything working, ie the email is sent, the quote pdf is saved to the account, ...
0
votes
1answer
30 views

Add Visualforce Page that is just a Button to the Custom Buttons Section of Page Layout

I had a custom button that used OnClick JavaScript behavior and when it was clicked would execute a bunch of JavaScript which would ultimately build a url and open it in a new window for the user. ...
0
votes
1answer
40 views

How do I use Salesforce Canvas to function like an Iframe?

Any guides to help me get started with Canvas in Salesforce? Need to use it for an Iframe replacement and the guides I have read feel like they skip a big section of how to use it.
0
votes
0answers
30 views

Any alternatives to using Iframe or methods to get my current one functioning?

This is the Visualforce page that I have being displayed. <apex:page lightningStylesheets="false" showHeader="false" standardController="account"> <apex:form > <apex:detail id="...
10
votes
2answers
387 views

How do you clear the ApexPages.getMessages() collection in a test?

The longtime frustration of not being able to clear the messages in tests is marked as a delivered idea in Summer '18 here Add support for clearing PageMessages via Apex. A failing of that forum is ...
0
votes
1answer
37 views

SLDS Spinner with backdrop on VF Page on Button click [duplicate]

I am trying to add a spinner with a backdrop as the loading screen but the spinner is not working when the action function is invoking. Action function is able to call the apex method but not invoking ...
0
votes
0answers
12 views

is it possible to use add attachment in New Task(Quick Action) Component in Lightning?

I have created a New Task(Quick Action) Functionality in lightning. if I click on New task Button, Standard Task creation page is popping up but attachment related List is not coming in lightning ...
1
vote
1answer
20 views

Cannot set Apex Image in Visualforce while generating PDF

I have been struggling with this issue from last few days and cannot figure this out. Im trying to dynamically set Document Id in my Visualforce PDF controller but cannot get this to work. If I set ...
0
votes
1answer
136 views

Custom Script Eval error on lightning application initial load

So I'm working on a legacy file at my new job and I'm getting this error: Custom Script Eval error in the resource loaded using 'ltng:require' [[object Event]] when a custom aura application is ...
0
votes
0answers
21 views

Visualforce on Lead Convert is directing to the Classic Conversion Screen

I have used some commonly user code for a visualforce page shown below: <apex:page standardController="Lead" > <apex:form > <div style="visibility:hidden;"> <apex:...
0
votes
0answers
20 views

Call Apex Controller method from button in Visualforce component table row

I have a Visualforce page which has a few Visuaforce Components to display sections of data, one of which contains a table with an "apex:repeat> for each row. Each of these rows has a button, which, ...
0
votes
1answer
11 views

Trigger change in PickList4.js from Salesforce

How can I trigger a picklist change event inside salesforce: We have the following code : <apex:outputPanel id="dynamicRerender"> <apex:repeat value="{!strings}" var="...
0
votes
0answers
9 views

Salesforce 1 - Capture Location

I've come across a requirement where User's location needs to be captured at every 1 minute (Without any user intervention). Application - Salesforce1 Is there any way by which we can achieve this? ...
1
vote
1answer
15 views

Having issue with apex:inputfile and apex:repeat. Input being cleared when adding new set

I have created a apex:repeat section with several questions, including a apex:inputfile. Every time I add a new one, the file gets cleared but the other fields are fine. I checked my controller to ...
2
votes
1answer
39 views

Get name of standard action overriden in Visualforce contorller

I have a visualforce page that overrides both the 'New' and 'Edit' Buttons of a custom object. In my controller extension how can I get the name of the action that called this page ? I don't see ...
0
votes
1answer
13 views

Extension Controller for a parent record return all the child in the Database instead of child related to the specific parent

I have an Object Called Container__c with a child called Article__Container__c. I create a visualforce page to display all child with an Extension Controller. But when i Hit the button on the layout ...
0
votes
1answer
18 views

How Do I Use The “oncomplete” Function To Refresh A Different Visualforce Page?

Is it possible to update a different visualforce page using the "oncomplete" function? I have a visualforce page that I would like to have the ability to refresh various other Visualforce pages when ...
0
votes
0answers
16 views

Dependent picklist not working when rendered in output panel of VisualForce Page

This is a small snippet of a bigger scenario. Here I have an empty div where I dump the full div section of the reRendered output panel. I am doing this so, because in my main codebase we have a ...
0
votes
0answers
13 views

Lightning component - render VF page over account details on button click

I need to build out a custom lightning component which houses 1 button that will set the account details to an imbedded iframe. I have found a few examples of components which render a vf iframe ...
0
votes
1answer
27 views

How Do I Get A Child Record ID Into The Master Record?

Currently i'm using this simple iframe to show a visualforce page built on a custom object called Paperwork__c which is a child relationship to Apprentice__c where I currently have it displaying. &...
0
votes
0answers
9 views

Download Vfpage using download button

Just for curiosity if we save the class in salesforce org download button is available and we can download the class in local system but for visualforce page why not this button available.
0
votes
1answer
22 views

Apex - using List Question

I created a Apex class : public class HellowWorld{ public List<Contact> getContacts() { List<Contact> contacts = Database.query('select a,b,c,d,e,f,g,h,i from alphabet'); ...