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.

3
votes
1answer
59 views

Open New Tab in Lightning Out?

Scenario: I want to create a List Button which displays a Lightning Component. The only way to implement this step is to use a Visualforce Page which uses a Standard Set Controller, then use ...
7
votes
1answer
73 views

Can LWC be used with other JS frameworks like ReactJS on VF Pages?

Currently the applications are built in ReactJS on top of VF Page. As part of enhancement, new components need to be built. Also they need to communicate with each other. I am planning to have LWC ...
0
votes
1answer
21 views

How to show a text label within a section column on page layouts?

I need to show a text label within a section column on page layout. I've created a separate section and new VF page. I need the text label to appear both on create and edit of the record.
-5
votes
0answers
45 views

Accessing data from a related object and displaying it in a field [closed]

Objects: Account(Parent lookup of) Billing_change_Form__c (Parent Lookup of) Contingency__c Fields: On Billing_Change_Form__c [account__c (id of account), case_findings__c (Long text field) on ...
1
vote
1answer
23 views

SelectOption List not populating dropdown on VF Page

I've been over the code a thousand times but cannot work out why the getVenueLst() method is not populating the SelectList on the vf page. Anyone have any ideas? Controller Public string ...
1
vote
2answers
36 views

Error using visualForce Remoting for javascript call to custom apex controller RemoteAction

I am trying to call a custom apex controller from javascript code in my visual force page but keep getting the following error : Visualforce Remoting Exception: No such column '_name' on sobject of ...
0
votes
2answers
32 views

I am trying to apply confirm box on Custom detail page button [closed]

I am calling vf page on button which will send email.Email method is executing from <Apex:page> action. My requirement is display confirm box on custom button. I am trying to add <apex:...
0
votes
1answer
23 views

Custom Controller and VF Pages for a Kanban

Looking to get a little help with a custom controller and VF page for a Kanban we will use on our home screen. I have used the code from https://shrutisridharan.wordpress.com/2016/08/22/creating-a-...
-2
votes
0answers
22 views

how to sum pageblocktable columns value?

I have face sum of column value //////////////visualforce page/////// <apex:page controller="importDataFromCSVController" sidebar="false" standardStylesheets="false" cache="true" applyBodyTag="...
-4
votes
2answers
35 views

how to hide/show div section based on the value [Yes/No] from custom label in visual force page? [closed]

how to hide/show div section based on the value [Yes/No] from custom label in visualforce page.
0
votes
1answer
16 views

LDV : What is max records that aggregate query can work with?

I am having difficulty understanding limits on aggregate queries. Salesforce Documentation for ReadOnly Attribute of Visualforce Page says Normally, queries for a single Visualforce page request ...
-2
votes
0answers
14 views

Custom Configuration Rules [closed]

I'm trying to achieve something like workflow rules/validation rules like attached screenshot. I'm storing my values in custom metadata type, displaying on visualforce page. now i can't figure out ...
-2
votes
0answers
37 views

Javascript Blur() not working in VF Page

I want to blur an element on Window scroll Up event.. I am doing so using following Javascript window.onscroll = function() { document.getElementById('HtmlIdGenerated').blur(); document....
3
votes
1answer
39 views

How to share Visualforce page (<apex:page/>) controller with multiple child components (<c:componentName/>)

I have a Visualforce page that is essentially a form with 8 steps. It uses a custom controller. I have recently moved each step into it's own component (8 in total). Now what I am wondering is, can I ...
-2
votes
3answers
68 views

Extension: Unknown Constructor

I am very new to this. This is my first apex and VF page. So please bare with me. I am getting the error: Unknown constructor customMutliSelectLookUpCntrl.customMutliSelectLookUpCntrl(...
0
votes
0answers
19 views

How to assign different record page layouts to different record types in Salesforce Partner Communities

first a little bit of context, I work as an intern for a company that builds systems using Salesforce, and I've been amazed at how much is possible with this platform. I've already built an internal ...
0
votes
1answer
32 views

VF page with dynamically generated HTML code?

I have a custom VF page which is added to a section in the page layout of an object. What I'd like to achieve is to add dynamically generated HTML code to my custom VF page. The HTML is dynamically ...
-3
votes
0answers
14 views

Develop a Visualforce Page to display Open/Closed WON / Closed lost Opportunities Checkboxes [closed]

User should have 3 checkboxes available on the Page and User should be able to check the checkboxes and view the Opportunities based on the selected checkboxes
-1
votes
0answers
21 views

Data Type problem in Account Records [closed]

Input type 'number' does not support ANY data type. Try setting type to 'text'
0
votes
1answer
15 views

How do I navigate directly to a visualforce page in a Lightning Community?

I have a lightning community and trying to figure out what the URL form should be to navigate directly to a custom VisualForce page. As an example if I want to navigate to a contact URL directly I ...
0
votes
0answers
9 views

Prepopulating Fields on visualforce page if checkbox is checked

I have a visualforce page with 2 main sections: "System Administrator" and "Billing Contact" what i want is if the "Same as System Admin" checkbox is checked then the Billing Contact fields get ...
0
votes
0answers
13 views

Visualforce - Passing data from a child visualforce component to a parent visualforce page

I have successfully created a visualforce page (parent VF page) that includes a visualforce component (child). Using the parent controller, I need to retrieve a variable (a list of custom object) ...
0
votes
0answers
25 views

Need to display opportunity and campaign members related to account

I'm trying to create PDF of account summary that includes related opportunities and campaign members of an account (hopefully to show a button on account page). Before working on visualforce page, I ...
1
vote
2answers
37 views

Visualforce component ids

Creating an element using visualforce: <apex:input id='myid'/> results in: <input id="j_id0:j_id5:j_id50:myId" type="text" name="j_id0:j_id5:j_id50:myId"> What is the purpose of adding ...
0
votes
1answer
19 views

VF Page Column Labels

I have a aggregated class as below snippet below public list<AggregateResult> getLastTopInfos () { return [SELECT Account__r.Name aaa, SUM(value__c) bbb, Account__r.Strategy__c ccc ...
0
votes
2answers
24 views

Unable to get Visualforce page form input values in Custom Controller

Controller: public class updateOpp{ public String Name {get;set;} public Boolean selectRecordDel {get;set;} public PageReference submit() { system.debug(Name); system....
0
votes
0answers
24 views

LongtextArea is not working in Vf page

I am using longTextarea field in VF page. But i am unable to add any text ,pictures, paste option nothing is working. <apex:form id="contentform"> <script type="text/javascript" src="{!...
0
votes
2answers
44 views

Pass Id from Visualforce Email template to Controller

I am trying to pass an id through a Visualforce email template component to its class. The class creates a wrapper, to combine two objects records into one list. The two objects lists have a common ...
0
votes
0answers
22 views

Unable to get lightning look and feel for site users

I am using lightning Page in VF using lightning out.The page is added to sites.But when I open the page via link, It shows the components but Look and feel is not of lightning.
1
vote
1answer
32 views

Optimize code by reducing many If-else Conditions?

If-else code which I have written. I want to optimize it. (Using maybe Collection). Can someone show me how to do it? if(form.first_name.value == '' && form.last_name.value == '' &&...
2
votes
0answers
18 views

Visualforce page with canvasApp fails to load when using “login as” (user impersonation)

I have a Visualforce page that uses apex:canvasApp. The canvas app itself uses a signedrequest for authentication via SAML SSO. Everything loads fine when logged in as a real user, however when an ...
-1
votes
0answers
23 views

Select records in a table on a visualforce page?

I have a VF page that searches for contacts using the first name and mailing state of the contact. It then returns a list of contacts on that same page that match the search. I would like to be able ...
1
vote
2answers
36 views

Required field validation error message in VF Page using Javascript? (No Alert box or Popup's)

I want simple message 'Complete this field' (as shown in image below) to displayed under input boxes which are empty while submitting the form in VisualForce page. Can someone tell me how to ...
0
votes
1answer
22 views

Is there a way to add particular <div> tags into a pdf on a button click in a vf page using javascript or the apex controller?

I know we can use the renderAs property to get whole vf pages as a pdf but I don't want that. I want particular tags in my pdf. I need a 'view/print pdf' button which opens the pdf in a new tab. I ...
0
votes
0answers
5 views

Screenshot wave dashboard on visual force page

Is it possible to take a screenshot of the wave dashboard on visualforcepage using apex? Currently, I am using html2canvas to take a screenshot. But the problem is once I the a screenshot of the ...
0
votes
1answer
43 views

Add Rows on table in Vf page

I am trying to add rows dynamically in my table in vf page. but when I try to do so it overlaps the current row. here is my controller class: public class BulkPaymentController { public String ...
1
vote
2answers
13 views

On click JS function syntax Map marker

I am trying to call a JS function on a button placed in the info window of map marker and pass the SFDC id to it, But the JS is giving me a syntax error. Here's my piece of code- for(var i=0, j=...
0
votes
2answers
26 views

Dynamic Generic Sobject multiple instances

I have a list of sobject and I am trying to add Account,Contact and Oppty records on runtime it's working fine.But how can I achieve it dynamically using sobjects type and describe methods i.e more ...
0
votes
0answers
8 views

How to Add Toggle button and Clone| Add favourite| Delete Action Icons for a every record in records list?

I have a VF page. that page will be showing custom object quote line item records. I need show "Clone| Add favourite| Delete Action Icons" for each record which are displayed in records list view in ...
0
votes
0answers
25 views

How to download the excel from visual force page?

I have uploaded CSV file in visualforce page,When i click on the Download button then download the excel file,this is actual scenario,But here button also downloading along with excel file,How to ...
0
votes
0answers
22 views

How to assign value and get selected value to select 2 drop down in VF page

I am trying to create a select 2 dropdown on a VF page but not able to assign and get the selected value. If anyone could guide,how to achieve this. It would be really helpful. I have not included the ...
0
votes
0answers
25 views

How to change Google Map Center by clicking a button in multiple direction on map Visualforce Salesforce

mi questions is, how to configure the buttons so that when I touch on one of them I will be directed and center the map to billing address and another to shipping address. It seems a bit easy, but I ...
6
votes
1answer
91 views

How to dynamically get VF page and Lightning page host name to use with Window.postMessage between VF and Lightning Component communication

I've lightning component where I'm going to embed a visualforce page, and then there will be communication between these two windows via postMessage API. the problem is how will I get the VF page ...
3
votes
1answer
44 views

HTML5 DocType not getting set

Any idea why this is not generating an html5 doctype in my pages? <apex:page applyBodyTag="false" applyHtmlTag="false" showHeader="false" cache="false" contentType="text/html" sidebar="false" ...
1
vote
1answer
30 views

Product fields are not visible on site?

I have a page which displays the product family picklist. However, the picklist is not visible if I open the page from my site. I have given access to fields on Public Access settings but still its ...
0
votes
0answers
17 views

Rich Text Area Indentation(Formatting) issue with Lists when rendering as pdf?

We have a Rich text field on the object where the data is entered the form of an list with indentation like below. But when we do Render as Pdf on the Vf page the indentation is lost as below. I ...
5
votes
0answers
40 views

Safari support for iframing a visualforce page

Background: I have an API I wish to use from within my managed package which occasionally results in long running callouts. In order to ensure my users don't encounter errors with the limits to long ...
0
votes
0answers
20 views

Developer Console Syntax highlighting messed up when included script tag in Visualforce

When script tag is not there When script tag is there Can anyone point out what is going wrong there?
0
votes
1answer
34 views

Custom object has read rights, but visualforce page shows null value

I'm encountering a strange problem with my APEX Class and Visualforce page that only occurs on Production and not on Acceptation or Development. There is a custom Object called soco__Product__c and ...
0
votes
0answers
50 views

How to create a custom VF page with dynamically generated HTML code?

I'm using a custom rich text field. The rich text field is created in a standard object. In the rich text field there is a dynamically generated HTML code via apex. Here is what the rich text field ...