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
2answers
10 views

Inner Class Cover in Test Class

Please help me why my code coverage is showing 0% . See my class code and test class code where I have written wrong? Class public class InnerClass { public class Wrap { public string ...
0
votes
2answers
31 views

How to pass multiple selected values from apex:selectList to controller?

I haven't been able to find an answer to this as all the answers are somewhat different to what I'm trying to achieve. Summary before giving the details: apex:selectList where the values are ...
0
votes
1answer
12 views

jquery tablesorter with apex:tabs

When I include the following scripts, I am unable to load the content of any apex:tab that is not selected by default (clicking on the tab does not show the content of the tab; the tab stays on the ...
0
votes
0answers
13 views

How to get column values properly in excel from vf?

We have created vf page that returns excel file. for 4 columns the values are updating randomly in excel. Please check the screen shots and code. The node1,machineid1, node2,MachineId2 columns are ...
-1
votes
2answers
22 views

Disclaimer Popup on Chatter Group [on hold]

I want to add a disclaimer message on a chatter group. When new user join chatter group he/she needs to accept disclaimer message. Can anybody help me on this because there is no standard way to do ...
0
votes
0answers
16 views

how to conditionally render a gauge chart based on values of a numeric array in Visualforce

controller--snippet if(pos >=0 && pos <assTElist.size()){ lstTrans = [select Maturity_Assessment_Question_ID__r.Transformation_Element__c fa, ...
0
votes
1answer
24 views

My Test Class Isn't Passing

I have a test class which is testing a controller but I cannot get the test to pass. Here is the controller class: //a controller class to get incidents for display on VF page and then //anonymise ...
0
votes
0answers
15 views

reload the lightning page after calling vf page from lightning controller

I have a lightning component from where I am firing a vf page. That vf page is downloading some data as excel file. I want to redirect to same lightning page after the calling the vf page. but it is ...
0
votes
2answers
25 views

can we use multiple extensions with custom controller

My first doubt is can we use multiple extensions with custom controller. If yes, please check below code and let me know can I call "dosomething" method of Ext2? Ext1: public with sharing class Ext1 ...
-1
votes
1answer
15 views

queried inside controller so how can i access id in that through apex test class?

How can I test below code which is inside controller? public with sharing class AccountDetails{ public Id accRecId; public List<account> accRec { get; set; } public ApexPages....
0
votes
0answers
17 views
0
votes
0answers
16 views

Explain side-effects of allowDML attribute in apex:component

In the documentation for apex:component it is said about the allowDML attribute: If this attribute is set to "true", you can include DML within the component. The default is "false". Allowing DML ...
0
votes
1answer
12 views

Calling Email template in Visual Force page using Iframe

I'm new to this sales force platform.I'm facing the problem to call the email template in visual force page using iframe. my code look like this. <apex:iframe id="previewFrame" title="HTML ...
0
votes
0answers
15 views

Maintain the State of a Controller when Opening a Shared Controller VF page as a Console Tab

I am trying to pass all of the values from an object from one Visualforce page to another. objX is queried for two fields id and fieldOne and stored in a list on the controller: listObjX The object ...
0
votes
0answers
18 views

Map data in visualforce page to a field in Salesforce [on hold]

I have visualforce page that shows JIRA tickets associated with a case. What I would like to do is map the BUG-326 to a field in Salesforce, that way I can run reports on if cases have JIRA's ...
0
votes
0answers
12 views

Not full URL in Referer header in a controller of a Visualforce page

I added a custom VF page in a Dashboard. I want to have the Id of the Dashboard in my controller because I need it in my script. So, I used ApexPages.currentPage().getHeaders().get('Referer'). In ...
1
vote
2answers
22 views

Could not resolve the entity from <apex:inputField> value binding ---

Could not resolve the entity from value binding '{!pizza_name}'. can only be used with SObjects, or objects that are Visualforce field component resolvable. apex class public class pizza_menu { ...
0
votes
2answers
19 views

How to create a condition for apex:inputField value field which gets a boolean expression from a method from controller?

I have the function which returns the boolean value and I want to use it in the VisualForce page in the following way: <apex:inputField id="reason" value="{!if(!isReason()): Case.Reason__c = 'No ...
0
votes
1answer
12 views

column names are overlapping in PageBlock table when i use in lightning

<apex:pageBlockTable var="a" value="{!selected}"> <apex:column value="{!a.Name}"/> <apex:outputLabel></apex:outputLabel> <apex:column ...
0
votes
1answer
24 views

Can we blink a primary tab after opening it via any css or js?

I am trying to open a primary via this: sforce.console.openPrimaryTab(null, '/lightning/n/***', true, 'TestSearch', openSuccess, 'salesforceTab'); Now if I pass false, the tab opens and does not ...
1
vote
2answers
65 views

Is there a way to determine if an object supports list view?

Is there a way to determine if an object supports list view? I've developed a VF page which shows a list of Objects and based on Object selection it shows list views of that selected object. For some ...
0
votes
1answer
27 views

How to create a custom VF page with dynamically generated HTML code and what VF component to use?

I have a dynamically generated HTML code in apex. I need to put and render this HTML in a custom VF page. How that can be achieved? If I need an <apex:outputLabel> please advise how to put ...
0
votes
1answer
14 views

InputField Conditional Font Styling

I have a requirement to conditionally style the font for a single inputfield based on the User's profile, however, below statement does not appear to be rendering properly. Is this possible using ...
0
votes
1answer
18 views

How to call VF on the Detail Button from Opportunity

Classic: document.location="/apex/CreateCaseRequest?oppid={!Opportunity.Id}"; I created a new Button for Lightning : did not work {!URLFOR('apex/CreateCaseRequest', null, [ SourceID = ...
-2
votes
0answers
23 views

click color of bar char for particular month it should goes into report page [on hold]

I have a customized bar chart page.When am clicking the blue color for the particular month it should go to the report and the report filter by month.How can we do in visualforce page.Plz help.
-1
votes
0answers
26 views

How to write a test class for multi select lookup page

I am new to apex development. I am writing my first test class. I am having a super hard time in writing it. Scenario: The extension lets a user select multiple records from child (Contingency__c) ...
0
votes
1answer
28 views

Add validation to managed lightning button

I have a managed (detail page button, content source: visualforce page) button which when clicked opens a visualforce page, I want to make this button shows a message if a field on the object is ...
0
votes
0answers
13 views

rerendering apex:inputText onchange to incorporate different styles

Is it possible to rerender an apex:inputText field immediately when the user changes the value of the field? In my application the form's input fields look different if they are already populated (...
0
votes
1answer
30 views

Wrapper list class getter setter issues

I am facing some challenges into the wrapper class for getter and setter. I have displayed some records based on question types like text, checkbox, and radio option. But when I clicked on a button ...
1
vote
2answers
26 views

Upload files and show them under related list of Sobject

We have a requirement where we need to attach multiple files and store them under Files (related list) for particular Sobject. I am able to insert the file but i am not getting the preview option ...
0
votes
3answers
32 views

Load a visualforce page in apex controller

Is there a way to load a visual force page in apex controller without viewing the page. The scenario is this I have a visualforcepage with apex:chart embedded. This page will save the chart as an ...
0
votes
1answer
14 views

How to set up apex:selectRadio in a grid layout

I'm trying to achieve below layout. Below is my code (with 2 approaches) on VF page. <apex:page lightningStylesheets="true" applyHtmlTag="true" > <apex:includeLightning /> <...
0
votes
0answers
17 views

Ability to show validation rule errors next to Stage on VF page when restricting some stage values using selectoption

Here's my vf page: <apex:column headerValue="Stage" id="stageerrors"> <apex:actionRegion > <apex:selectList value="{!opp.opp.StageName}" multiselect="false" size="1" > <apex:...
0
votes
1answer
14 views

Redirect to custom visual force page/action from a lightning component controller

I created a custom visual force page that I use to overide the standard NEW action in the list view of one of my custom object. I would also like to add a link to this custom VF page in the record ...
1
vote
0answers
32 views

Send data from Lightning component to visualforce page without window.postmessage

I am using window.postmessage() to send data from lightning component to visualforce page as given in below link. https://developer.salesforce.com/blogs/developer-relations/2017/01/lightning-...
1
vote
2answers
44 views

Overriding new button in List view to point to custom apex page

I want to override my new action (button on listview) for a custom object with a link to a custom apex page. I have created an apex page with the following attributes : <apex:page showHeader="...
0
votes
3answers
47 views

If/else statement in Visualforce

I am new to Visualforce/Apex and I am trying to construct an if else statement to render two different views dependent on alias (one view for a certain alias and another view for everyone else). I am ...
0
votes
0answers
14 views

Accessing List values of Lead History Object Using VF Page [on hold]

How can i access lead history field to show on visualforce page in list format and data must be there for changing field values of leads?????????
0
votes
0answers
30 views

Getting status null in apex continution callouts

I am getting this response for all urls System.HttpResponse[Status=null, StatusCode=200] in my continution object Here's my code public with sharing class ContinuationController { // Unique ...
0
votes
1answer
18 views

Account search app on visualforce apex

I creating visualforce app using apex, the problem is I stuck in not displaying the Accounts. Can anyone help me with this? Here's my work so far; my code; <apex:page controller="...
0
votes
0answers
17 views

Dependant picklist in VF Page with or without using apex controller [duplicate]

I have a custom object and it has two picklists. One of them is dependant on the other. I'm supposed to put these on a vf page. The issue I'm having is that the values of the secondary picklist are ...
0
votes
0answers
25 views

Visualforce Rendering - 2 levels

I am trying to render 2 additional field levels in Visualforce using rerender function. Is this possible? I have the first level working, but unable to get the last level working properly. Any ...
0
votes
1answer
27 views

Select List Rendering when it should not be

I have created a VF page that select multiple records from child (Contingency__c) and add them to parent (Billing_Change_Form__c) related list. Everything work fine other than one issue. Upon ...
1
vote
1answer
66 views

Can I build a wizard with Visualforce Components?

The classic example Creating a Wizard shows how to build a wizard using 1 apex controller and several visualforce pages. In my case our wizard has 5 pages and 1 controller. The problem is that the ...
0
votes
0answers
22 views

Is it possible to schedule sending a VF Page via Email?

We have this requirement that says we need to schedule once a month the sending of a VF page that contains custom dashboard charts via email. So if we break this requirement down, we need to do the ...
0
votes
2answers
22 views

related fields of contact are not auto-populating on case vf page

I have created a custom button "Create Case" on case for community user portal, where user when click on that button it will redirect to vf page. On that vf page i am having a field Contact name, ...
0
votes
0answers
16 views

How to get the returned result from a method invoked in a trigger and send it to a custom VF page? [on hold]

I have a custom VF page added to a section in a standard object layout. I invoke my own method in beforeInsert() in the standard object. The returned result from my method must be put in the custom ...
0
votes
1answer
28 views

“Unable to resolve entity from value binding” with sObject instance variable [on hold]

Could not resolve the entity from value binding '{!acc.Name}'. can only be used with SObjects, or objects that are Visualforce field component resolvable. Here is Controller public class Li { ...
0
votes
1answer
27 views

How to close window automatically once the excel file got downloaded?

I have command button while clicking the button it will redirect to VF page where it will renderas data as excel also it will open a site.Once the excel download is completed,the window needs to be ...
0
votes
0answers
15 views

Searchable Picklist in Visualforce Page? [closed]

How to create searchable picklist in Visualforce where one can search for record name and will get a result on that search term. Currently I am using choosen jquery to search but stucked at refreshing ...