The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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
1answer
19 views

Ask a query form while agent is offline

While the agent is offline can community user submit the form through live chat
-2
votes
1answer
11 views

Send Vf Page as attacment to multiple Users through Schedule class [on hold]

I have a requirement that I need to send Vf page as PDf attachment using schedule Class. For every records Vf page will have different Value. How to pass record Id to the page for different records ...
2
votes
1answer
31 views

Dynamic SOQL in Map with unknow sobject?

is it possible to do SOQL for the unknown object without for loop as below string theQuery = 'Select '+fiels+' From'+obj_frm +whr; Map <Id, object> oppMap = new Map<Id, object>((List<...
0
votes
1answer
22 views

Hot to Add spinner to SLDS VF page when button is clicked

I must be missing something here because the spinner does not show up, but not sure where the problem is. What am I missing? <li class="slds-button-group-item"> <apex:commandButton ...
-2
votes
0answers
20 views

Code Coverage is not getting 75% [duplicate]

I have written a Test Class for my Apex Class. But I got only 18% Code Coverage, Any ideas where I am getting wrong in the test class. This is my apex class global class MergePDF_Controller { @...
0
votes
0answers
12 views

How can I create a VF component that follows you like the header bar?

I need a component that will follow you from page to page like the header I need to have a visualforce component that simply shows a timestamp no matter where you are on the org.I was thinking ...
0
votes
0answers
11 views

VF page to PDF to Notes & Attachments

I have two VF pages and a class, which is shown below. When Decision Status is Accepted, a visualforce page is generated but now I wanted to convert this VF page to PDF and save it notes and ...
-1
votes
0answers
14 views

Visualforce Component email template

Hey there i am trying to generate a pdf through visualforce component which i am using in email template which i am sending through approval process when i try to print record id in pdf it works fine ...
-2
votes
0answers
21 views

selection by clicking on a menu item [on hold]

How to make sure that when you click on a specific menu item it becomes highlighted? <div class="slds-border_right"> ...
0
votes
1answer
26 views

Edit before DeepClone

I have a really interesting question for you guys. I'm intending to clone product and the related lists, before saving the new record, I want to edit some of the fields. However, I run into the trap ...
1
vote
0answers
13 views

Loading speed issue with screen flow

I designed a screen flow that I hosted on a Salesforce site. The flow is called through a Visualforce page and I used a lightning component for the lightning runtime. This is how it looks like on the ...
0
votes
0answers
17 views

VF Page window.open in LEX bypass popup prompt?

I have a button in Lightning that opens a visualforce page that immediately opens a third party url link. So I want to avoid using the js command of window.open on my visualforce markup on page load ...
1
vote
1answer
18 views

Error passing parameter from lightning component to flow

A controller with the below works fine: init : function (component) { var flow = component.find('flowData'); flow.startFlow('OppAssignmentProcess'); } A controller with the below ...
0
votes
0answers
13 views

HELP to convert onclick javascript to visualforce page in lightning [on hold]

{!REQUIRESCRIPT("/soap/ajax/14.0/connection.js")} {!REQUIRESCRIPT("/soap/ajax/14.0/apex.js")} var win = window.open('/apex/xxxx?id={!Bb__c.Id}&retURL=/apex/ForceWindowClose', 'Popup Name' ,"...
0
votes
0answers
14 views

HelpText For Multiselect Rendered as checkBox on Visualforce Page

I have a custom Visualforce Page on which a multi select is rendered as checkboxes. Now the User case is to add help text to add each values to increase the accuracy. I have tried using Custom ...
1
vote
0answers
21 views

Lightning Visualforce

I have a Visualforce page in Lightning it works as expected. In the Visual Force Page I have a custom button that redirects a user to a standard page for edit. After the user clicks Save I dont want ...
0
votes
0answers
14 views

Need to figure out how to import long text between objects

I have a custom object called Role. A role relates to an Opportunity and an Account. On that object there is a field for Account Description and Opportunity description that relates back to those ...
0
votes
1answer
17 views

Unknown property 'SoqlExample.accs' I am new to slalesforce getting this error

<apex:page controller="SoqlExample"> <apex:form> <apex:pageBlock title="SoqlResult"> <apex:pageBlockTable value="{!accs}" var="a"> <apex:column ...
0
votes
0answers
16 views

Converting VF page into MS Word

I am trying to render VF page into MS Word, all content is appearing exactly as per requirement except border of MS Word.Please have a look of below screenshot.Tried many CSS but no effect on the ...
0
votes
0answers
14 views

Need to control width of the table column in print

I am using Bootstrap in my Visualforce Page and the table looks alright when the Vf Page is generated. I need to print this using ctrl+P, but when one the columm values (name) was going too large, ...
0
votes
0answers
16 views

Record is not saving with updated values with Command link

I have one command link which is Save & Next which will save the record in object and navigate to next tab on same vf page. The save method is void method and when I click on save & next ...
0
votes
0answers
14 views

Custom Popup on custom VF conditional on user input save Account name [on hold]

I have a VF page in which i want to show the popup that let me only if the user save a record with account name = hello. This is the code i have so far <apex:page controller="AccountController"&...
0
votes
2answers
34 views

How to delete a accountcontactrelationship record from apex?

Hi i have desinged a vf page to add multiple accounts records for a particular contact using related accounts at same time.   But now i also have to delete existing relationships in the related ...
0
votes
1answer
45 views

Custom Metadata/Settings/Labels for Configuring a Visualforce page?

Goal I'm looking to build a mechanism to allow system administrators to easily configure various components of a Visualforce page that is used in a site (without having to modify code). I would like ...
0
votes
0answers
17 views

Using Managed Certificate from Visualforce Page

I have an API I need to call where the only auth is with a certificate, but it must be called from the Visualforce page to work properly as it returns a JavaScript object that will be called ...
0
votes
1answer
23 views

VF Page Error : “Invalid selectOptions found. Use SelectOption type in Apex”

loading my VF page i am getting the below error: Error : Invalid selectOptions found. Use SelectOption type in Apex VF Page: <apex:page standardController="Statement__c" extensions="...
0
votes
1answer
26 views

SOQL order by 2 fields (date + integer)

I would like to sort a list with two fields for a visual force page, so it works like this: Sorted by latest SRA_Date_Time__c(datetime) + by lowest Activity (integer) Example: one lead has ...
0
votes
2answers
55 views

Validation rule for edit the case for specific Profile

I need help with my Validation Rule. In my scenario, I have one Custom Object and in the Custom Object, I have one "Record Owner" Field which is lookup through the User Object. I want only that user ...
0
votes
1answer
21 views

apex:enhancedList stuck in Loading

I have a Visualforce page having an apex enhancedList : <apex:page> <apex:enhancedList type="Account" rowsPerPage="25" height="300" customizable="false" /> </apex:page> but it'...
-2
votes
1answer
26 views

Create a simple custom page to update the LoggedIn User's User and Contact details. I am Stuck [closed]

controller public class UserDetailsController { public static user currentuser(){ Id uId=userinfo.getUserId(); User u = [select id,Name,Phone,MobilePhone,Email,Username,Address ...
0
votes
2answers
24 views

Lightning cancel button in visualforce page

When cancel button is clicked in visualforce page, it has to redirect to home page.Instead I'm getting the same visualforce page.Kindly help. public PageReference cancel() { return null; }
0
votes
0answers
22 views

export CSV without redirect to a blank page

i am trying to export my data as csv file using another csv VF page, but the problem is that it redirect automatically to a blank page, and i want to staty in the same page after export. i have tried ...
0
votes
1answer
16 views

Email Template - The template does not have a controller that can be selected for preview

When I include the following code inside the "subject" of my visualforce email template I can't use "send test and verify merge fields" - the message 'The template does not have a controller that can ...
0
votes
0answers
25 views

Test Class for Page Reference Method Help [duplicate]

I'm not sure where to get started with writing this test class. I'm a junior developer and when trying to test createCourse PageReference method I get either an insert or assert fails, or I get an ...
0
votes
0answers
32 views

Best way to build a public page with a nice form? [closed]

I am required to create a new public form page for a client. The link needs to be accessible to anyone. Also, they want the form to have a nice look and feel into it. Previously, we have created a ...
2
votes
0answers
38 views

Communicating between Lightning Components and Visualforce Pages using dynamic URLs

Following this example: https://developer.salesforce.com/blogs/developer-relations/2017/01/lightning-visualforce-communication.html I am able to communicate between an LWC and a VisualForce page in ...
0
votes
0answers
15 views

Make a Sound on a VisualForce Page play ONLY once after lead creation?

I am trying to figure out how to make a sound play once, the page refreshes every 10 seconds so it would cause it to play every time it refreshes. How can I get this sound to play only once instead of ...
1
vote
0answers
14 views

Create Multiple PDFS from a Visualforce page

I have a VF page that is designed to export as a PDF. It looks at a parent record: Division__c and uses a component to loop through and create a PDF of all the child records: Region__c. Currently, ...
0
votes
0answers
20 views

Create common custom visualforce page for standard entities

I am trying to implement the visualforce page with in which I am showing phone number fields in detail page. For example , For any specific contact / lead / opportunity / account / cases I am ...
0
votes
2answers
24 views

Hide sidebar and header iframe url in lightning component

I have a lightning component in which I load an iframe based on recordid. How do I hide the header and sidebar I used the following but this is not working <iframe src="{!'/098/e?parent_id='+v....
-2
votes
1answer
20 views

apex:param not rendering

I am trying to render the current week of the year on to a VF page with a custom controller I have added the value for the weekofyear into the controller and it appears to be ok. But when testing the ...
-2
votes
2answers
30 views

Nested Aura Components are not showing up in a Visualforce Page

I have created a lightning app with Aura Component Bundles which is working fine as a standalone application and also as a Lightning Page. I want to create a VF page using these Aura Components. I'm ...
-2
votes
2answers
24 views

Unable to save new VisualForce pages in developer console

I have developer account created on Salesforce.com, I was able to create APEX classes and Visualforce pages using the 'developer console'. All of a sudden now my visualforce pages are not getting ...
0
votes
1answer
22 views

How to Pass parameter value from controller to Apex:repeat getValue()

I wonder, how can I pass input variable to getValuesForRepeat in apex:repeat please. I.e, my apex:repeat renders different contents depends on inputVar1. Basically, <apex:repeat value="{!...
1
vote
0answers
52 views

Cannot display more than 20 records?

I am trying to display in a VF page the contacts from another org. The problem is that I can only show the first 20 records and I would like to show 1000. Pagination is working fine for the first 20 ...
0
votes
0answers
28 views

Add an “Owner” input field in VF page to update record owner

The use case I'm working on dictates me to build a solution that'd work in Classic. The goal is to create a quick action on the Case Feed. The quick action then will call a Visualforce page to ...
-2
votes
0answers
19 views

How to avoid a few page-break-after in repeats

I have the code: <apex:page standardController="Tool__c" extensions="ToolController" recordSetVar="tools" renderAs="pdf" applyHtmlTag="false" showHeader="false"> <apex:variable ...
0
votes
0answers
8 views

Display embedded mp4 video from external Content Version

I'm trying to develop a visualforce page which displays our training videos, for this requirement, we want to upload Content Versions to one Enterprise org, make all the videos with public access (...
0
votes
0answers
26 views

Disable/Enable a commandbutton in VF using a function

I know that are a lot of messages regarding this issue, but cannot find the similarity into the problem I am facing. I have created a VF page - and into that VF page I have got a command button with ...
0
votes
0answers
23 views

I am not getting correct data in pdf

I had created a table in visualforce when i am rendering it as a pdf it is showing garbage data. I had called visualforce page in apex class. Apex class is called by trigger when the case status is ...