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.

0
votes
2answers
27 views

How to add Back Button functionality in a VisualForce page?

I want to add "Back" button functionality on my VF page. As javascript:history.back() does not work in VisualForce page, is there any other way to achieve this? Thanks
0
votes
1answer
15 views

How to create a Navigation Tab Item that isn't based on an Object record list

How do you go about creating something that you can make a navigation menu item that isn't based on Object lists? I need to create something that would generate some custom reports (default Reports ...
0
votes
1answer
27 views

How To Pass Lead Email Address to IFRAME?

How do I pass a lead email address to an IFRAME? I did the following steps: Created a new test lead. Went into gear icon > Setup > Custom Code > VisualForce Pages, and created a new VisualForce Page ...
0
votes
0answers
38 views

URL query on VF page that contains a lightning component

I have a visualforce page that contains a lightning component. I am wanting to put the VF page in a custom Lightning Page Tab (app home template) and pass a url parameter to the Lightning Component ...
0
votes
0answers
6 views

How to reload opened console tabs

I am using custom button on custom object. When i click on the button, i use onClick javascript function window.location.reload(); problem is, it only reloads active tab, where i clicked on the button....
0
votes
1answer
10 views

How to provide access dynamically to different profiles for a single web page in visualforce?

For a sample VF page, if depending upon certain logic we want to change visibility of a page for profiles dynamically, how can we do that ? Example - Profile1, Profile2 ....Profile5 have access to VF1....
0
votes
0answers
51 views

Error: Incorrect parameter type for subscript. Expected Text, received SetValue

I get following error in my vf page: Error: Incorrect parameter type for subscript. Expected Text, received SetValue Please share some thoughts, below is snippet from my page. <apex:repeat ...
0
votes
0answers
27 views

{!ApprovalRequest.Internal_URL} in a Visualforce Email that is using a different related to object?

I'm creating an email template for an approval request and it is related to our quote object. When I try to use {!ApprovalRequest.Internal_URL} to get the URL to link out to the quote, it doesn't ...
0
votes
1answer
43 views

Show lightning component in visual force page [closed]

I am trying to show Lightning component on VF page. I am basically showing custom object list view along with a pop up box in my lightning component. When i am trying to refer the same component on VF ...
0
votes
1answer
33 views

Iterate over a Map of Map in VF page

I have a map of Map<String, Map<String, Field_Utility.FieldData>> called objectsToFields. The Field_Utility.FieldData class looks like this: public class Field_Utility { //Other stuff ...
0
votes
0answers
19 views

Dynamic client side Search for Accounts in VF page

I need to make a search input - which every character that printed on the keyboard will show the closest result. for example : If I printed "uni" all accounts that they names starting with "uni" ...
0
votes
0answers
17 views

Can I call a javascript function that is defined in a vf page in a vf component?

I have javscript functions in my vf page. I am using a vf component on that page. Is there a way to use those functions in my vf component? If not, then alternatively, can I change style properties of ...
0
votes
0answers
13 views

How to rerender apex repeat in jquery

How to update apex:repeat tag in jquery. Here are sample code: $ = jQuery.noConflict(); $(document).ready(function() { $('#calendar').fullCalendar({ resources:[ ...
0
votes
2answers
25 views

My Contact Became null and not able to insert values

I have an issue that I want to create an attendance for student management visualforce page in that while I am referring a contact and inserting it into a custom object my contact value becomes null ...
-2
votes
1answer
22 views

Get object name when object tab is override by vf page [closed]

I'm thinking to write a dynamic vf page which will override the object Tab(Account). So how to know the object name in apex class. Once I got the object name then I will then i will perform remaining ...
1
vote
1answer
260 views

No option to ask a question in https://developer.salesforce.com discussion forums [closed]

I am trying to ask a question on https://developer.salesforce.com Discussion Forum, but there is no link/button to ask a question there. Please guide me as to where can i ask a question there...
0
votes
0answers
50 views

Unable to upload static resources to sandbox

i have a sandbox on salesforce and i am pushing code there to test. i am also using some static resources which i have uploaded there. But this morning, when i tried to edit a static resource, i am ...
0
votes
0answers
24 views

Lightning Component in VF Page

I have created Lightning Component in VF Page in which I have used the lightning component from the managed package. In my lightning app I have already defined <aura:dependency resource="managed ...
0
votes
1answer
22 views

Selectoption value is not passed to controller

Status picklist values are : New,Pending,Closed. In onchange i am trying to pass selected picklist value . If i select New/Pending/Closed the value is passed to controller .But when i chose the ...
0
votes
0answers
13 views

How to remove Boxes on VF Component using Lightning

I've created a semi-basic vf page to display certain fields under certain conditions - but the end result continues to be displayed into embedded boxes that I can't seem to figure out how to remove. ...
0
votes
0answers
19 views

Fullcalendar refetch sources

I'm using fullcalendar with salesforce, and try to refetch sources in calendar that comes from controller. Form contains select option, so on change it must refresh calendar with values (recources ...
0
votes
1answer
16 views

Does visualforce page acts like a configuration for an application

I have a lightning app in sfdc, and I have a few custom fields in my app, those fields I configured in a JSON file format and place in a visualforce page. Those configuration settings are changed ...
0
votes
1answer
32 views

text field mandatory when a check box is checked in Visualforce Page

I am working in Visualforce where I created Checkbox fields "Rejected" on VF Page and have Text field "Rejected Comments" as mandatory. Can anyone help me out in this issue to achieve it. My VF Page ...
0
votes
2answers
19 views

Trying to use static resource in visualforce page controller test class

I have a visualforce page controller class which has a soql in the beginning select <fields> from <custom_object_A> where appnum = <fetched_from_vf_page_parameter>; The controller ...
0
votes
1answer
13 views

Display name of user in VF page, given a user ID stored on a related object

I have a custom object (Grievance_Note__c) that stores a CreatedById for each note. I want to display the name of the user who created the note. Right now the VF page is displaying the User ID and I ...
0
votes
0answers
18 views

unable to fetch value row wise in page block table using javascript?

<apex:pageBlockTable value="{!WrapperOrder}" onclick="insert_numbers()" var="or" id="pbtable"> <apex:column headerValue="No." > <apex:...
0
votes
1answer
30 views

Account Owner name and Email id not Fetching the value in SOQL Query

Here is my code: SELECT u.Contact.AccountId, u.Contact.Account.Owner.Name, u.Contact.Account.Owner.Email FROM User u WHERE u.id= :UserInfo.getUserId() LIMIT 1
0
votes
0answers
17 views

Save selected data by checkbox from vf page to object

if a check box is selected in vf page selected attachment should get save in an object.i need a controller logic. here is my code : <apex:...
-1
votes
0answers
13 views

Command buttons in lightning

Command buttons save and cancle on VF pages displays on center of page top and down in classic but when we use lightningStyleSheet="true", the buttons on top are displaying on right side. Can someone ...
1
vote
2answers
42 views

How to pass Date fields as Parameter to Apex method?

I have this Controller class: public class ConController { public List<Contact> conList {get;set;} public Date dateFrom {get;set;} public Date dateTo {get;set;} public static List<...
0
votes
1answer
18 views

Problem accessing public variable in apex class from visualforce

I'm having a problem displaying lead information from a custom controller extension. The class looks like this: public class LeadDuplicateManagement{ public List<Lead> similarLeads { get; ...
0
votes
1answer
27 views

VF page to display custom related list

I have two custom objects: 'MRC Cases' (parent) and 'MRC Case Notes' (child). On the MRC Cases Lightning Record Page I want to display all of the case notes associated with the MRC Case, with the full ...
0
votes
0answers
20 views

What triggers Expired Password Visualforce Page

I want to write up a custom page for the expired password page. I am unable to find the page that is related to the expired password page, my assumption is that it is the same VFP as the ...
0
votes
1answer
23 views

Editing Custom Lead Convert VF page

We override the standard lead convert for this custom VF page. I was not the one who created this and am not VF savvy yet. I need the task section to not be required and I need to add a field onto the ...
1
vote
0answers
17 views

How to show Chart in Visualforce page which has renderas = pdf [duplicate]

I have VF page with renderAs = PDF. I want to display a chart on that PDF? I have tried https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_charting_example.htm and Display ...
1
vote
0answers
29 views

Visualforce Page Force.com Site - Language Translation By Clicking on a “Change lang Button”

I have a force.com site which I would like to translate the fields name of a form when a button was clicked. What I did so far: I created a basic form I activated the Spanish translation and ...
0
votes
0answers
38 views

Calling Javascript Boolean variable value from visualforce page to apex controller

I have prevent submit method & one java script function. I write java script logic in java script function & call these function in prevent method. (Prevent Method) var SSN =document....
0
votes
1answer
43 views

uncheck checkbox if other checkbox is checked in Visualforce

I am working on one vf Page where I have two check boxes for each row, so if I check one checkbox then other should be unchecked. I mean in one row,I can select only one check. In above screenshot if ...
-1
votes
2answers
28 views

Issue with Action support inside a selectlist

I am working creating a vf page, that has a selectlist showing list of Sobjects. Once anyone sobject is selected it has to display the fields in another selectlist. I tried but I am unable to get the ...
0
votes
2answers
21 views

Invoking Custom controller method after successful save?

Working on a VF page where I am inserting a Contact record. I have created a extension controller to insert a custom object record after this Save action completes. But I am not able to get this ...
0
votes
0answers
7 views

sforce.console.getPageInfo() is returning the details of the previous VF page in Service Cloud Console

We are currently facing an issue with the sforce.console.getPageInfo() function. We have a bunch of buttons that use VF page for the create record form. When a record is saved successfully, the page ...
0
votes
2answers
23 views

To show different color on every row in a table based on condition in vf page

I need to show different color on every row based on condition in VF Page. How I will acheive this: Below is the code: Based on key value I need to show different color to every row. <table> &...
0
votes
0answers
7 views

Download Analytics Dashboard in VF page or lightning Component

I'm looking for a way to download Analytics Dashboard from the VF page or lightning component. I'm displaying it in my lightning component, where I want to have a button to download it similar to what ...
1
vote
1answer
35 views
+50

How to access the Schedule ID for each instalment of a LineItemSchedule

I have Products that have schedules with just one revenue amount (and date) and there are some that have two installments. When exporting this LineItemSchedule object, I can only see the second ...
0
votes
1answer
11 views

Add additional acceptable variables in VF page

This VF page is for a custom button that currently only works if the opp is in 'Approved' stage. I need it to also work if the opp is in 'SOW Received' or 'Closed Won'. How would I add those into the ...
2
votes
0answers
32 views

Spring '19 changes to Lightning communities CSP and visualforce pages

Before Spring '19 we were relying on a Visualforce page included in an iframe inside a Lightning community to load static HTML content. That worked without any issue. It still does when the community ...
0
votes
0answers
21 views

FullCalendar Visualforce is not displaying after rerender

I'm using FullCalendar on a Visualforce page but I'm having trouble when I need to reRender an apex outputPanel. I have a checkbox to show/hide some events depending on the value of a field. The ...
1
vote
1answer
31 views

Validation Message in JavaScript not displaying properly

I am trying to show basic validation error on each row of input text oncheck of checkbox.Initially it is displaying error correctly below the 1st field but if i check 2nd checkbox in table its ...
0
votes
0answers
22 views

Visualforce page to create related custom record on Opportunity

I have this custom object that describes a Client Visit, and it's related to an opportunity (there's a Master-Detail Relationship on this custom object to the Opportunity object). I want to be able ...
2
votes
0answers
26 views

apex:slds not loading for Community Guest user, throws unsupported stylesheet MIME type error

The LDS CSS is not being loaded by using apex:slds tag for Community Guest User. It generates a link tag as below: <link class="user" href="/Customer/slds/css/gx0YG61QwKo3viF0Mc1gTw/min/scoped/one:...