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
1
vote
1answer
22 views

MALFORMED_QUERY error

I am getting this error: MALFORMED_QUERY: Initial_Notification_Templates__r where Program__c =: programId) from EVT_Notification_Type__c ^ ERROR at Row:1:Column:236 rule parseSingleWhere failed ...
0
votes
2answers
17 views

Lightning out App error in callback function

I had created a lightning component to upload multiple files with the help of this URL how to create upload multiple file url which is working fine in action button but when I try to call that ...
0
votes
0answers
11 views

Email Message Object - Sanitize HTML Body

I use an output panel and rerender to display the HTML Body of an Email Message object query that is invoked by a user. There is an issue (confirmed by Salesforce Support) with rerendering an ...
-3
votes
0answers
28 views

Salesforce wrapper [on hold]

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 ...
0
votes
1answer
16 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
vote
2answers
47 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 ...
0
votes
0answers
22 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. As you can see in my controller there are two list BadgeList and List called InQueueDecision. I wanted to add List InQueueDecision ...
1
vote
1answer
55 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(), ...
-2
votes
1answer
37 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 : ====== ...
-2
votes
1answer
32 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
161 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?
-3
votes
1answer
16 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
18 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 ...
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
19 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 ...
1
vote
3answers
48 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 ...
-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
18 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
53 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 ...
3
votes
1answer
56 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 ...
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
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 ...
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/...
0
votes
1answer
29 views

Want to process over one millions records synchronously with aggregate functions

I want to process over one million records synchronously in apex controller and want to show records SUM, COUNT, MAX, AVG etc on visualforce page as per the requirement. e.g. suppose a custom object ...
0
votes
2answers
28 views

Lightning page with 4 buttons that invoke 4 different queries but only 1 displays at a time on the same visualforce page

I want to be able to run 4 different queries on a single visualforce page depending on the button clicked on a lightning component. Right now the way its set up works but it can't access the static ...
1
vote
1answer
16 views

How can i integrate a section in Related Lists with the standard Lead Page

Could you please help me to know, how can i integrate a section with the standard Lead Page. I have tried to embed a visual force section into a standard page layout, I can add that section in "lead ...
0
votes
0answers
19 views

Migrating VF Apex controller to lightning component Apex controller [closed]

I wanted to convert my VF page completely to lightning component ,But my VF page has Apex Controller ,What things need to be Edit in Apex Controller for lightning ready .
0
votes
1answer
31 views

Lightning component to replace vf page button for quick action change owner button on opportunity [closed]

I want to implement change owner quick action button on opportunity page layout. without using VF page button , i want to implement this with lightning component <apex:page standardController="...
0
votes
1answer
27 views

Salesforce support for Scripting languages in Visualforce pages embedded in Service Console

I had an issue with a Visualforce page embedded as a tab in the Service Console. I created a case with Salesforce support to help me with the issue as it was working prior the recent Chrome upgrade. ...
-3
votes
0answers
24 views

Adding and Saving a new entry for a custom object [duplicate]

I have a custom object,named Product__c. And have a visualforce page with the list of products, apex class with some logics. The task is: I need to add two buttons - New and Save. New button will ...
0
votes
0answers
20 views

Community Dynamic Fields from the Account

So we are working in our Company to build a support portal page. Our team would like to have in the site how many open and closed cases. My ideas ran dry when I tried to ask Salesforce for help, now ...
0
votes
1answer
24 views

How to assign field values to a constructor in Apex Test Class?

I am trying to test my custom controller's saveNewContact() method. I am trying to set the fields on the page, or in the constructor contact, and attempt to save the record. Unfortunately, when I run ...
-2
votes
0answers
31 views

include moment.js in Visualforce [closed]

I have been trying to include moment.js via static resource but it is not working. <apex:includeScript value="{!URLFOR($Resource.mom_js_bep_libs, '/moment/moment.js')}" /> <apex:...
0
votes
2answers
31 views

<apex:inputSecret> auto populate is not working?

I want to display password value as secret and it need to be auto populate from salesforce without passing manually. I can able to display username but password field display empty. Anyone help ...
0
votes
0answers
32 views

Want to convert string to UTF-16BE in hex form in apex [closed]

I was checking in this link and able to convert string to UTF-16BE(Screen shot provided below). Same thing want to do using apex coding. Is there any methods are available or way to do this? Or any ...
-2
votes
0answers
21 views

Converting Javascript functionality to Visualforce Page [closed]

I am trying to move an OnClickJavascript button to VF so that it can work in Salesforce Lightning, however not able to rectify the issue in the below code. Need Help JavaScript Code: {!REQUIRESCRIPT(...
0
votes
0answers
31 views

SFDC Flow Launched from Custom Button

I have a custom button on the Opportunity object that launches a Visualforce page. The Visualforce page passes the Opportunity ID to the Flow then launches it and sets the finish location. I know my ...
0
votes
0answers
34 views

Need to remove mandatory checkbox field from VF page [closed]

I come with zero coding experience and need help in edit VF page that was already built in our Org. We have build VF Login page for our community users. We have username, password, forgot Password and ...
-1
votes
0answers
49 views

Add a new product to a custom Object Product__c

I am new to salesforce. My problem is: I have a custom object, called Product__c and I need to add New and Save buttons to the page. The New button should show Input Fields. And the Save button should ...
-2
votes
0answers
28 views

I need to add function on page to edit product using updateProduct method for controller? Can anybody help me in this please? [duplicate]

Here is Page <apex:page Controller="ProductTablePageController" > <apex:form id="theForm" > <apex:pageBlock > <apex:pageBlockButtons location="top" > <apex:commandButton ...
0
votes
0answers
8 views

Mass update with Visualforce button on listview

Novice developer here, trying to adapt Trailhead code to a somewhat similar use for class attendance. I want the following to happen — user clicks multiple boxes on a list view of enrollees user ...
0
votes
0answers
19 views

Embedded VF Page redirects to a new tab in Lightning Experience

I'm running into pretty much the same issue as this question - Lightning experience embedded page redirect I would comment on that Question to see if the OP found a solution but I don't have enough ...
1
vote
2answers
35 views

VF Page not throwing error when field is null

I have a VF Page which is having a Input label "Barcode", now I just want throw an error on VF Page if the text field is null and on click save button. Can anyone helps me out in this issue here if ...