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

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 ...

0
votes
1answer
10 views

How to replace 'window.location.protocol' and 'window.location.hostname' in VF which won't work in Lightning?

I am currently trying to migration my company's Salesforce from Classic to Lightning Experience. However, the readiness report VF says the following: JavaScript included in this page uses window. ...
0
votes
1answer
13 views

Refresh record detail page and close the a lightning out visualforce from lightning component button

I have a lex component that runs from a lightning-out visualforce page that opens from a custom button on a record details page. How can I close the visualforce page and refresh the record details ...
0
votes
1answer
29 views

I'm new to VF and apex. Trying to create a custom clone functionality.

Unable to pass contact from VF to the controller. I have to check if the contact is inactive on VF page if it inactive, allow user to change the contact and pass the changes to the controller. If ...
0
votes
1answer
13 views

How to access transient variable value in apex which inputted from vf page?

I have VF page with Standard Controller and extension. I have declared one variable as transient with getter and setter. VF page has input tag where I am allowing user to input transient varible value....
0
votes
1answer
11 views

apex:outputPanel rendered logic

I'm trying to render some content in a Visualforce email if specific boolean fields are true. I have 6 boolean fields I'd like to verify. Using apex:outputPanel I'm able to do the following: <...
0
votes
0answers
9 views

Event calendar component in Visualforce page

The standard Event Edit page has this great Calendar component where user can see his own schedule for the day he's setting up the event, we use custom Event Edit Visualforce page, and I was wondering ...
0
votes
2answers
25 views

System.QueryException: expecting a colon, found New

String emailBlastQuery = 'SELECT Id, Inquiry_Type__c, Product_type__c, Solution__c, Reason_For_Calling__c, '+ 'Problem_Category__c, Duplicate_Case_Problem_Category__c,...
0
votes
0answers
12 views

Redirect to edit mode from Visualforce at Lightning Experience

I created a button that opens a Visualforce (this page runs only at Lightning and Salesforce app) whit a form to do some validations. The button Close task runs an Action and OnComplete function: <...
0
votes
1answer
33 views

Visualforce: Pass checked checkbox items to Apex list?

I have a table with one of the columns being a checkbox. I want to be able to pass all the checked items values into a list in another apex controller. VFP <apex:repeat value="{!data}" var="...
0
votes
1answer
19 views

Button to open a different visual force page opens a blank / broken page

I have a visual force page and a button called that is supposed to take the user to another visual force page. A problem however is this page is completely blank or just isn't loading it seems. ...
0
votes
1answer
18 views

Dependent picklist values disappear after Visualforce page submit

I have a Visualforce page with a controlling picklist field and a dependent picklist field. Both fields are required entry during record creation, but instead of using the required parameter on apex:...
0
votes
0answers
20 views

Is there a way for Visualforce Page to listen to Lightning Event

i.e. if vf page is in an iframe inside the lightning component, can the visualforce page listen to this event using lightning out? --testApp.app-- <aura:application extends="ltng:outApp"> &...
0
votes
0answers
8 views

Is there a way to identify a visualforce if it is running as a dashboard component?

Initially, I thought it is able to retrieve the current url and use it to identify if the visualforce page is running as a dashboard component or not. But, in the reality, it is not so. The ApexPages ...
0
votes
0answers
6 views

Upload File in flow embed on VF [on hold]

I have a Flow that will upload a file then the flow was run in lightning and I embed it on Vf. When I test to upload a file and it doesn't work and there is no popup modal.
2
votes
0answers
40 views

Test Class coverage error

I'm trying to deploy a Controller, VF Page, and Test Class into Production, but keep getting an error that my Code Coverage is under 75% in Production - even though the Code Coverage is over 90% in ...
0
votes
1answer
24 views

How to create a custom search component using lightning [on hold]

I have been struggling trying to create a custom component for searching through objects using lightning. I have been on trailhead and the only reference to such is the Lightning Communities: Create a ...
0
votes
0answers
21 views

Run flow in APEX class

I've created a list button for cases, and I´ve included it in accounts related lists. The button has a visualforce page as its content resource, where I run my flow for creating a new Case. The idea ...
0
votes
1answer
18 views

Visualforce Button with Javascript Not Populating Picklist Field

I have a custom VF page embedded on my Opportunity object. The button populates a custom picklist field with one of the picklist values through a custom label. However, when I have the "Restrict ...
-2
votes
0answers
23 views

How can I use my preowned URL for VF Page

I have my website running www.somewhere.com . I need to deploy to salesforce. I added pages to visualforce pages and connected products with salesforce products. But my url shows visual.force.com....
0
votes
1answer
21 views

visualforce list of available javascript libraries? [on hold]

This is me frustrated with getting wrong search results... I'm looking for any salesforce based javascript files or libraries available for use in visualforce pages. I've come across a few in the ...
0
votes
1answer
22 views

how to highlight picklist values with color in visualforce pdf page

<tr> <td width="100%" colspan="18" ><table style="width:100%;" class="tr2"> <tr style="font-size:10px;vertical-align:middle;"> &...
0
votes
0answers
20 views

How to remove help text from the PDF rendered through VF page? [on hold]

How to remove the help text bubble, that is present on the field, not to be displayed in the PDF rendered through VF page. That help text bubble overlaps with the data of the field.
11
votes
0answers
43 views

Custom Labels in Packages - Potential BUG in Winter 19

We have an unmanaged package using 167 custom labels to use the Translation Workbench in Salesforce and to be able to translate texts into different languages. Until now, all our custom labels have ...
0
votes
0answers
16 views

update custom fields after click on save & submit button

save new method is used to save edited record but prob is it does not save recently updated record. it shows me old one record <apex:page standardController="customer__c" showHeader="false" action=...
1
vote
1answer
10 views

Visual Flow to edit multiple lines

We are currently having issues with the standard Salesforce data entry of OrderProducts (OrderItem). We have a Screen Flow that is used to populate 10-200 line items at a time with shared values, but ...
0
votes
1answer
18 views

Detect whether Visualforce Page is Loading in Classic or Lightning Or Sf1 [duplicate]

Currently, I am using below tag to detect whether VF Page is embedded in lightning or Classic or Mobile devices. Below the line of code return values as Theme3, Theme4t, Theme4u etc. These values can ...
0
votes
0answers
18 views

reRender problem In Visualforce page

I have one checkbox in an object I want to update that checkbox in visualforce page, I'm able to update that checkbox successfully using(command button) apex controller, but that problem here is I ...
0
votes
0answers
16 views

Codeship Bitbucket/Github and Salesforce - Deployment Management [closed]

I want to configure Codeship with bitbucket to manage Deployment in my Org. I couldn't find any helpful reference on the Internet.
0
votes
1answer
15 views

standard controller with extension

If we have standard controller with extension controller, extension runs in system mode generally. So now in this case extension controller, will it run in user mode? Provided i don't have with ...
0
votes
0answers
28 views

Issues Sending an email from Apex

I am trying to create a visualforce button that then inserts an opportunity and then sends an email to anyone if the running user is listed as the marketing_development_rep__c. Not sure if I am doing ...
0
votes
1answer
11 views

PanelGrid won't iterate horizontally.

I have tried moving around the panelgrid, panelgroup and repeat statements but I cannot get the panelgrid to show the records horizontally. Can anyone spot what I am missing? <apex:page ...
1
vote
1answer
11 views

Incorrect parameter type for function 'not()' in VF email template

I'm trying to get information to conditionally render based on if the field is populated or not. All my fields except for Media_Kit_Comment__c are boolean. Media_Kit_Comment__c is a string and I'm ...
2
votes
1answer
24 views

Return to originating view from List Button in Lightning Experience

I have a VF page containing a flow. The VF page uses a Standard List Controller pass a list of records (Contacts) to the flow. I've added a List Button and added it to the List layout, and this ...
1
vote
2answers
51 views

Displaying Account Closed and Account Open Cases On Case Page Layout

I created a new case layout and I would like to display the related account's related cases. I can currently show all the related account's cases but I would like to split that up into two related ...
0
votes
0answers
23 views

Visualforce Excel Export Issue

I'm trying to export a Visualforce page as an Excel document. I've looked at similar questions and the exported file is saved as a webpage embedded in excel which is prompted as unsupported/corrupt ...
1
vote
0answers
15 views

Content Version Issue in Community

I have created a autocomplete functionality for contacts. once I selected contact I am redirecting page with the help of contact ID I am fetching the contact and Content Version details. it's work ...
2
votes
2answers
166 views

How should I display list of lists with parent and child combined

I am having a data structure similar to this: Class A { public String Name; public String status; public List<B>; } In the Visualforce page, I need to display both A and B's ...
1
vote
1answer
41 views

Keep focus on desired tab in Salesforce Application

I am having an application in which I have added one Tab in it also it has a default Home Tab. Now I need to open up another visualforce page on a button click. I have used PageReference here : ...
1
vote
2answers
31 views

Embedded Visualforce Page to Update Custom Field

I am using an embedded Visualforce page as a custom button to update a custom field on my Opportunity record. The page saves fine and shows on my page layout, but when I click it, nothing happens. ...
1
vote
1answer
22 views

Embedded Visualforce Button to Update Field

I am trying to have an embedded VF page show as a button on my Opportunity record that will update a custom field. The page loads, but when I click the button, nothing happens. Does anyone see what ...
0
votes
0answers
22 views

REST call only works on some User Profiles

I use a REST call to get the ID for a global value set for use on a visualforce page. The REST call is working, but when I'm logged in as a standard user I get this error that shows on the page: ...
1
vote
1answer
24 views

Lead Convert VF page stuck in a loop in Lightning

My Lead Convert button overrides standard and uses a VF page. When switching to Lightning, this button causes a new tab to open endlessly until I close completely out of the browser. Am I able to make ...
0
votes
0answers
16 views

client dom open redirect in Visualforce Page (SCAVA Security Issue)

We are facing scava security issue for the below lines in visulforce page. //var query = '{!JSENCODE($CurrentPage.parameters.strURLRedirect)}'; var query = window.location.search.slice(1);// SCAVA ...
-1
votes
0answers
24 views

Select list values are not passing to controller

Im trying to get list of values from a picklist in a VF page.When we click send button it should pass the value and display the related records in another vf page.Now all the records are showing ....
2
votes
0answers
23 views

Lightning Console: Uncloseable tabs

So I ran into some weird behaviours trying to migrate a customer to Lightning Console. They have lots of Apex and Visualforce and our scope of work is limited enough that we want to keep any VF that ...
0
votes
0answers
11 views

How to reference the contact object of the logged in user on a Visualforce page? [closed]

We are going to be building several visual force pages where we want to pre populate certain fields using data in the logged in Users contact record. I am new to VF coming form the likes fo .NET and ...
0
votes
0answers
9 views

Advanced Approval Email Attachment

I have Advanced Approvals enabled in our organization for our Salesforce CPQ. When an approval is requested from the Quote, an email gets sent to the approver through a VF template. I would like to ...
0
votes
1answer
16 views

Assigning Case Owner on opening a Case

We have Email-to-case implemented which is assigning new cases to a Queue. Now whenever a user opens a new case, it should be assigned automatically to that user. For this I have written a VF page ...
5
votes
2answers
71 views

How can I force Visualforce to include empty attributes which I have specified?

During my adventures trying to get a <select required="required"> to actually be required, I discovered: If a select element has a required attribute specified, does not have a multiple ...
-1
votes
0answers
25 views

How to find out a day of the date

I have a visualforce page with two input date values (user dynamically enters that), want to find out only number of days between them excluding saturday and sunday. I read datetime.format('EEEE') is ...