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.

Filter by
Sorted by
Tagged with
-2
votes
0answers
21 views

Salesforce wrapper

I have three Objects Pricing__c Product_pricing__c Customer__c I have created a wrapper to fetch the data please find the code below. my requirement is to display the data based on Search ...
1
vote
1answer
49 views

salesforce identify if current time in a timezone exists between a particular time range (only time not date)

I am trying to identify if time for a timezone is within 7AM to 7PM. But the problem below converts the time to another timezone. Time myTime = Time.newInstance(dt.hour(), dt.minute(), dt.second(), ...
0
votes
1answer
35 views

Facing problem in single select radio button?

I have done with almost everything. The only thing left is to prevent multi-selection of radio button. It should be a single select only. ---Controller-- public class ContactRoleOnOpp8 { public ...
4
votes
1answer
19k views

How to define the width of apex:pageBlockTable columns?

I have two tables, I can change the 'width' in the first table but I am having some problems using width in the second tables, I tried adding columns="9" columnsWidth="20%,10%,10%,10%",10%",10%",10%",...
0
votes
1answer
9 views

Delete Row button from List of record not working in Visualforce page

I am writing a VF page where I have to show list records with Add/Delete button. when I click Delete (X) button it is deleting the record and removing that particular row. But if I am adding a row ...
-1
votes
1answer
36 views

SObject row was retrieved via SOQL without querying the requested field: Webinar_Attendees__c.Voucher_Assign_Date__c

'm trying display parent fields and sub query fields in a table.But I'm unable to display sub query fields.Could anyone suggest an idea for me Page : ====== ...
0
votes
1answer
43 views

Validation Rule - ISBLANK() not working as expected

On the Lead object, I am trying to validate that my custom "Zip_Code__c" field and the standard "Email" field contain a value in this validation rule, but despite the validation rule being active, it'...
1
vote
1answer
1k views

Redirecting from Controller to standard list view page?

I'm using a custom_object and once the user save I want that page to redirect to list view page but what is happening is that right after i click save button i see the white blank screen with the ...
0
votes
1answer
393 views

Getting all attachments for a record in a visualforce email template

When sending an Email via a Visualforce Email Template, I would like to get all attachments I have for an Opportunity record. I found this page very helpful: Insert Attachment into Visualforce Email ...
0
votes
2answers
2k views

how to dynamically delete the records in visualforce page?

Part of VF Page Code <apex:outputPanel id="testpanel"> <apex:repeat value="{!testvaluerecords}" var="tst"> <div> <apex:outputText value="{!tst....
0
votes
0answers
17 views

Need help add a column to a visual force page table with combine two list [on hold]

I need help combining two list and show it on a table in SalesForce. Below is my apex controller class and my apex page and screenshot of my visual force page. Apex controller public with ...
2
votes
2answers
2k views

How can I use pagination in a VF page when using a Controller Extension?

I have a Visualforce page with the following attributes <apex:page standardController="Asset" extensions="myAssetsExtension" sidebar="false" showHeader="false" standardStylesheets="false"> I ...
1
vote
1answer
830 views

Javascript error on Button click

I am using one custom list button on one of the related list. But sometime when I click on this button I am getting the below error message: A problem with the OnClick javascript for this button or ...
4
votes
1answer
167 views

Is it possible to navigate to a Visualforce page from an LWC

The LWC framework includes the NavigationMixin.Navigate functionality that can be used to obtain URLs or perform navigation to generated URLs. This supports a number of different page types, as ...
0
votes
1answer
338 views

Uncaught ReferenceError onclick of checkbox

I'm calling javascript method from apex:inputcheckbox but facing an error: Uncaught ReferenceError: disableChebox is not defined Please help me, as I'm not able to understand why I receive this ...
0
votes
2answers
1k views

when the user click on the link in every row of the page block table ,it should open the detail page

VF: <apex:page standardController="Lead" recordSetVar="Leads" extensions="ShowDetails"> <apex:form id="RID"> <apex:pageBlock title="pageBlockTable"> <...
1
vote
1answer
946 views

Embed report chart to visualforce filter issue

How can I apply filter for the <analytics:reportChart> tag? I created a report chart for my Fuel__c object with a filter of date_log__c (Datetime) field, by enddate and startdate. When I embed ...
4
votes
1answer
1k views

Access lightning component's standard save/cancel buttons for salesforce1

I have a lightning component loaded in to a visual force page; VF page is called via an action. Once I try to load this action from a mobile device/simulator I could see a standard save and cancel ...
4
votes
2answers
1k views

How to refresh a VF page from lightning component included in subtab

I have added a lightning component in a subtab(Actions) of Account detail in Lightning experience. There is one other subtab(Account Plan) which is showing a VF page. Now I want to refresh the VF ...
0
votes
3answers
2k views

Rerender output panel when action method using pageReference

Can anyone tell me how to rerender a particular pageblock when the action method using pageReference? My use case is I want to rerender a particular block when I click the command button ...
2
votes
1answer
347 views

Content security policy error while loading apex iframe

Issue: We get CSP (Content Security Policy) error with our Visualforce page integration. The issue is that when we access this in sandbox testing, we find that our content is wrapped in an iframe, ...
-2
votes
1answer
31 views

post html form outside of salesforce form [on hold]

I tried to send data with this form to retrieve the html answer but it does not work someone already had a similar issue? <apex:page standardController="Lead"> <form action="https://cfsmsp....
3
votes
1answer
159 views

Will Force.com stop working on salesforce Lightning?

I would like to know if the October 2019 switch from salesforce classic to lightning. Will the force.com pages stop working?
-2
votes
1answer
14 views

Records are not displaying immediately,It needs to refresh page again.How can I display records without refreshing page?

I'm trying to display records in panel2 after clicking a button in panel 1.But records are not displaying immediately after clicking a button.Initially panel2 displays empty,after refreshing page ...
1
vote
0answers
16 views

Enable Lightning runtime for flows

I have a Softphone Layout that needs to call a lightning component from a flow. I wanted to call the lightning component from a Visualforce page so I could set the finish location. When I try to ...
0
votes
0answers
19 views

How can we get the session ID of salesforce in VeevaCRM (MyInsights) [on hold]

How can we get the session ID of salesforce in VeevaCRM (MyInsights). We have logged into VeevaCRM using the “xyz@account.com”, We have created an MyInsight Test Report. We need to sign into the ...
-2
votes
0answers
13 views

How to convert a list into a list of lists of size 6 [on hold]

So I need to produce an excel file through visualforce that will display only 6 items per work sheet. if I have a list of a custom object, what is the best way to split the list up so I can use an ...
8
votes
4answers
7k views

Display the fields properly in output panel while using actionRegion

I am using actionRegion for to show/hide the fields based upon picklist in Opportunity. When i am selecting the Stage picklist value is Closed Lost, then 4 text fields will be displays. It works fine. ...
0
votes
1answer
18 views

Dynamic static resource in custom visualforce email template

Background I am trying to add a dynamic link in a visualforce email template to download a PDF which is stored as a publicly available Static Resource: <a href="https://x.cs.force.com/site/{!...
0
votes
1answer
18 views

How to invoke a visualforce page from a Lightning component?

I need to know how to be able to call a visulalforce page from a Lightning component by a click of a button. Here is my js controller: gotoURL : function(component, event, helper) { var urlVf =...
0
votes
1answer
16 views

Including static resource javascript file in another static resource

I have many visualforce pages which are pulling in the same static resource js files. How do I include one static resource within another static resource so I only have to pull one file into the ...
-1
votes
0answers
19 views

Handler for visualforce page is firing twice?

public PageReference createUpdateOpportunity(){ system.debug('Opp Creation Hit'+objOpportunity); List<OpportunityLineItem> upsertCurrentOLILst = new List<OpportunityLineItem&...
0
votes
0answers
21 views

How to add breaks in apex:datatable

I have an apex:datatable that lists opportunityLineItems. I want to render the columns based on the value of the lineitem field Product_Type__c and then add a break in between each group. I am able ...
0
votes
0answers
18 views

VF Page with SLDS and expecting Header to show Custom Image [on hold]

I am new to VF page and SLDS, and trying to build a simple Form.Expecting the header and footer of the form to hold custom images by loading these images into static resources. However below are my ...
0
votes
1answer
52 views

Data doesn't display immediately after clicking a button.It takes manually refresh page again

I tried a lot to resolving this issue but not able to achieving the requirement.Please help me on this After Clicking a button in Panel 1,It navigates to Panel 2 and Initially it displays panel 2 as ...
-1
votes
0answers
25 views

Refused to display in a frame because an ancestor violates the following Content Security Policy directive

(I am aware there are couple of question already been asked on SFSE with same error.) We have a lightning component where we are rendering react app using static resource with the help of lightning:...
27
votes
7answers
53k views

Where To start Learning With Salesforce Development

Where should I start learning? There are various topics to learn like Objects, Classes, Apex, Visualforce, SOSL, SOQL, Triggers, etc. There are so many options out there to start learning. I couldn't ...
1
vote
2answers
19 views

How to use rendercondition visualforce on map

I have a map from which i get the value in visualforce. How do I use the redner condition to check that if the falue is empty it will not render. I get the error: Incorrect parameter type for ...
0
votes
2answers
39 views

Multiple Radio Button are getting Selected while Using with <apex:repeat>

I am trying to create Radio Button using <apex:repeat> and in {!recordList} i have 7 records so it will create 7 Radio Buttons. But the problem is that all 7 Buttons are getting Selected and i ...
0
votes
0answers
26 views

Assign list of users to queues from VF page [duplicate]

I am currently working on a requirement where I need to assign users to a queue. I have created one VF page which dynamically pulls the users list show in VF page. When an agent selects the users ...
-5
votes
1answer
21 views

Show Random text just below the label in Visualforce Page [on hold]

I have a Visualforce page which is having a input field Barcode, now I just want to display random text "Click here" just below the input field. Is it possible to achieve, can anyone guide me on ...
0
votes
1answer
17 views

How to display helptext on hover in apex:Column

I would like to display help icon,on hover display helptext in apex column header. Code: <apex:column HeaderValue="Description" width="24%"> <apex:outputField value="{!...
0
votes
1answer
35 views

HTML Source bug sending Rich Text field in VisualForce Email Template

Background We are using Lightning. I need to create an email template that a user can use on a custom object's Activity > Email tab. The object records meeting minutes and includes a rich text ...
3
votes
1answer
55 views

Redirect to VF Page not firing

Good day, I posted this over on the Salesforce Dev community forums but have gotten no responses. I'm hoping someone here might be able to assist. We have a call center application integrated with ...
2
votes
3answers
5k views

passing data from Page controller to component Controller

I want to pass list of record from VF page controller to component controller but when i access variable in component controller using object creation then i am getting null value. I am taking Example ...
0
votes
1answer
338 views

Editing Account Specific Records with List Controller for a Custom Object Related List

I have a custom object with the API name of Pricing_Range__c. Each account record has a related list of this custom object. I would like to make a visualforce page that would allow us to mass edit the ...
0
votes
0answers
17 views

Data doesn't display immediately after actionSupport call complete from third party?

After clicking the button I can able to get the data and displayed in the next page.But data is not visible immediately. After few seconds If I refresh page again then it shows data from third party. ...
0
votes
1answer
21 views

Process an existing spreadsheet and output it in excel [closed]

I have a requirement where I need to store an excel workbook (with multiple sheets) in salesforce. Most probably in static resources or salesforce documents. Then when I click on a button on the ...
0
votes
1answer
27 views

Visualforce CommandButton Auto-Refresh Parent Standard Page on Page Save

I have a Visualforce (child page) stored within a Standard Page layout (Opportunity parent standard page) which calls a custom controller "Save" method. I would like for the parent page to refresh/...
12
votes
2answers
2k views

Any equivalent of apex:variable in Lightning Components?

In Visualforce apex:variable can be used to avoid the repetition of a Visualforce expression. I have a collection returned from an @AuraEnabled method for which I want to do the same sort of thing ...