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
13 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
1answer
596 views

Issue in Login | Remote Access 2.0 | Password Lockout | Connected App

I am unable to login either directly through login.salesforce.com and unable to generate token through rest/ curl call (Connected App) for one of the user. The issue is locking of the user ...
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 ...
2
votes
1answer
538 views

Under Construction displaying in Site after updating VF functionality

I have a small Site that has been deployed for a year or so with read/write access to a single custom object. I recently added a new field to the object and one of the VF pages, and modified the ...
0
votes
2answers
505 views

How to update a input field value?

I have two fields in inline VF.eg,picklist field and input field.If i change both picklist and inputfield value the entered value is updated in record.But when I change input field value alone it is ...
2
votes
1answer
523 views

JSON for Autocomplete functionality in VF

I'm trying to get my autocomplete functionality to work in my VF page for a TextField. I need to obtain the List of a custom Object from my controller (with the name and the ID of the record). I use ...
0
votes
1answer
516 views

Lightning Action to VisualForce Page. Why opens in new Window?

I have lightning action set to open VF page. But not sure why it is opening into new browser window. Is there any hidden configuration? i do not see any navigation rule on Lightning action edit page.
-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
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
2answers
32 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
547 views

How do i pass data from visualforce page to component's custom controller?

I have a modal in the visualforce page that i want to move to its own component, for the most part its just displaying information. The data passed to the conponent controller constructor doesn't ...
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
609 views

How to add list view filtering to a visualforce page using standard controller

I am want to use list view filter to change the list of account in my visualforce page. I am not sure which event to use in action support. Here is what i have done so far <apex:page ...
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 ...
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
1answer
513 views

Saving Email Template as PDF attachment to record?

Is it possible to save an Email template as a PDF attachment to a record ?
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 ...
1
vote
2answers
124 views

How can I download the changesets from a visualforce page into a zip file?

I am trying to download the changesets into a zip file from the visualforce page. But I feel like I am dumbstruck with no possibility of doing it. Can someone help me in doing it?
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
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
1answer
539 views

Parameter value automatically hide in visualforce page URL

I have login page. For valid user, page redirect to profile page. I am passing email as parameter in URL for successful login. PageReference pg= Page.MyProfile; pg.getParameters().put('email',email); ...
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
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
2answers
539 views

How to export report in excel and send as a attachment in email directly

Is there any workaround to send out scheduled reports as Excel attachment than actually embedding it within an email?
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
2answers
578 views

How get domain for visalforce and lightning?

I trying get below information from salesforce. I need it to dynamic developer no hardcode. I need this to communication lightning component via visualforce page. yourdomain-dev-ed.lightning.force....
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
1answer
15 views

I need to update checkbox (checked or unchecked) from UI

If I check a checkbox from UI in database its value should change accordingly what I have tried till now is below public class CheckboxFunctionality { public List<Account> accList{get;set;...
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
1answer
206 views

Visualforce not loading iframe after update

I had/have a Visualforce page that displays an iframe that points to another page within my organization. It points to the page that renders an email template (like https://prodorg--c.na17.content....
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 ...
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 { ...
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
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 ...
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="...
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 ...
2
votes
1answer
527 views

how to send pdf file from apex form

i am trying post pdf file from visual page to my controller using apex:form and send it third party using rest api, but on controller end i am not getting my pdf file.its field is null, visual page &...
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
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 ...
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
561 views

Link upload file to Lead Record

Good day how does one link an inputFile upload to a Lead record? I have created a visual force form with some text fields and an input upload field to save on to the notes and attachment section. On ...
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
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 ...
1
vote
1answer
548 views

Convert VisualForce Page including some JS-constructed DOM to PDF

I have a VisualForce page that I need to convert to PDF. Now the challenge is that this page has a few components constructed with JavaScript (including, but not limited to, jQuery), so 'runAs="pdf"' ...
3
votes
1answer
548 views

Cancel button and immediate=true not working

I have a inline VF page where i show child records of the object. The child records are rendered in a apex:pageblock table. I am using apex:inlineeditsupport to enable inline editing of the fields for ...