Stack Exchange Network

Stack Exchange network consists of 175 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
1answer
19 views

Pass the parameter from the VF page to command button action

I have the VF Page and through a custom button I am passing the parameter To the VF URL as https://abc--c.cs41.visual.force.com/apex/Send_Env_Email?OppId=00655D0Z8 I want to reterive this within the ...
0
votes
0answers
28 views

Set apex:variable from javascript

I have a question: I need to set the value of an apex:variable (test) equal to a javascript variable (result). You can see my code below: window.onload = function(){ console.log(...
0
votes
1answer
18 views

Draggable = false link in lightning-out - aura components

When I set a link to draggable = false in aura component (using lightning-out), the attribute is somehow being reset to draggable = true during compilation. The link is draggable. Why is the ...
0
votes
0answers
28 views

How to open native app(Barcode Scanner) using visualforce page in salesforce 1

I am working on a Salesforce 1 mobile app. I have a business requirement to open external App (Barcodescanner) in SF1 app. I have tried below methods. * sforce.one.navigateToURL(); * window.open(); ...
1
vote
1answer
17 views

How to Implement “fluent constructors” inside visualforce page data iterator?

I am trying to put together a custom controller class implementing the fluid interface builder pattern. Said class does compile, and my question is how can it be implemented inside a VisualForce page'...
0
votes
1answer
29 views

visualforce currency input field

I have a custom web to Lead form where I need to get Annual revenue from the form, trying to get with the following field. However I am unable to get the data in the record under the field "...
1
vote
1answer
40 views

Onclick not working in visual force page if the case subject field having single quotes

We have developed an custom email section to have the emails in sequential order when a case is cloned (as this functionality is not there with standard emails section). Now we are facing a strange ...
0
votes
0answers
15 views

Inserting a ContentVersion using Angularjs $http + Chatter Rest API

I have been trying to insert files using Salesforce Chatter REST API, but its been documented only for curl. I am unable to find how to do the same in Angularjs using $http with visualforce. I am ...
0
votes
0answers
14 views

Passing values between Site page and Lightning component

I have created a site page in salesforce, in which my users enter their input values. Now I have a lightning component hosted in my community. Is it possible for me to get the values entered in the ...
0
votes
1answer
33 views

CSS for Excel Accounting Format?

I am working with a data table in Visualforce, and I am trying to get the columns with currency values to format similarly to how the account format looks in Excel, where it will align the dollar ...
0
votes
1answer
22 views

Using lineitemsort.jsp - VF Javascript function not defined

Salesforce uses the lineitemsort.jsp to reorder opportunity and quote line items. I am trying to create a visualforce page with Javascript fucntion (and apex controller) that includes the ability to ...
0
votes
1answer
74 views

We want to get a list of lead and opp. that have the same date (custom fields) in the record as the actual shown lead

What we did so far... We created a visual force page that calls a class and added an extension to get the ID. We got some Error :) (We try to get the ID for the currently displayed Lead, which ...
1
vote
1answer
46 views

how to display all the elements of a table?

I am trying to display all the information of my csv file. Except that in my visualforce page, he shows me the last element of my table. public class ImportExcel { public String fileName{get; ...
0
votes
1answer
51 views

How do we convert pdf in html format in visualforce page?

Following code takes me with pdf but i wanted to view this pdf as html because in my pdf some buttons are clickable and i wanted to capture that click event from pdf so it is not possible in pdf and ...
0
votes
1answer
21 views

How to implement “Get Locator” keyword from CumulusCI library?

Every implementation of Get Locator keyword I am trying is resulting into: AttributeError: 'dict' object has no attribute 'format'` please educate me with respect to the correct implementation and ...
0
votes
1answer
34 views

file upload through VF page to external ftp site?

I have a request to increase the file size upload limit from existing 5 MB to 25~50MB. The functionality currently uses a VF page to upload the file to an external ftp server. We changed the ...
0
votes
2answers
60 views

Navigating to VF page with e.force:navigateToURL shows as classic

I am navigating to a visualforce page from a lightning component using: $A.get("e.force:navigateToURL) but when the user gets to the vf page it is styled as classic, even lightningStyleSheets="true". ...
-1
votes
2answers
38 views

How to display email href link as bold based on status field value in visual force page

We have custom emails section for the case object. I want to display the email subject hyper link as bold if email status is NEW. for all other status it should be in normal font. Could you please ...
-2
votes
2answers
37 views

visualforce page phone number should have 10 digits

I am trying to validate phone number where customer should enter 10 digit number. I am unable to get any alert here even the phone number is having less than 10 digits, any idea?. <apex:inputText ...
1
vote
1answer
20 views

CommandButton in visualforce component not triggering action in controller

I have a few command buttons that are not calling the action as defined in the controller. The 'showPopup' method works, but the others do not. Log files show that the methods are not being invoked at ...
1
vote
1answer
48 views

List view button without standard controller

Is it possible to create a list view button without a standard controller? My requirement is, I want to create a List view button for any object. In the current scenario, I have to write the same ...
0
votes
1answer
83 views

Same Date, self reference? Work-around ideas

I have got a lot of research and recherche done as this simple where clause doesn't work because of it self-reference. I want to display all leads and opportunities who have the same "datefield x" as ...
0
votes
0answers
45 views

How to copy data to text fields when checkbox is checked

I have a little challenge which I'm trying, I want whenever the checkbox is checked I want to copy the values into input text fields in visualforce page. So here I have multiple rows and ...
0
votes
1answer
31 views

set colors or different styles for different options on Apex:SelectOptions tag

How can i put some style on an <apex:selectOptions> tag on a Visualforce Page? I have to change the font color of the options depending on one param, for instance if the param goes from 1 to 5, ...
0
votes
0answers
15 views

How to set column width Dynamically based on data in Apex?

<apex:pageBlockSection id="Notes" title="Sales Notes History" columns="1" rendered="{!salesNoteToDisplay.size != 0 }" ><!--modified rendered for UWNotes--> <...
0
votes
1answer
24 views

Quicksave Inline Editing on a PageBlock table

I have a pageblock table and I enabled InlineEditingSupport. However, everytime I edit it and click quick save, the last row is the only record that is being updated. I tried making my own method but ...
3
votes
0answers
37 views

Passing a parameter to visualforce in lightning experience

We have a Visualforce page in Lightning Experience and we are using an apex:outputLink to pass a parameter to the same page, so that we can edit an item on the page. VF Page 'MySetup' Snippet: <...
-2
votes
0answers
24 views

how to convert visualforce page to ppt [duplicate]

<apex:page controller="Checkbox_Class" Tabstyle="Account" lightningStylesheets="true" contentType="application/vnd.ms-powerpoint#file.ppt"> <apex:form > <apex:pageBlock Title="...
0
votes
1answer
28 views

Locked record editable by any user on VF page during approval process

I have a multi-level approval process which locks the record from editing when it is initially submitted and locks the record as a final approval action (except for current approver and sys admin). We ...
0
votes
2answers
40 views

Call VF page from @AuraEnabled method

I have tried to pass the parameter via the vf page from @AuraEnabled method to generate pdf. It does not call the vf page constructor. How can we pass a parameter via the vf page from @AuraEnabled (...
0
votes
0answers
25 views

I want to store the custom vf page with my standard case object

I have created one visualforce page for custom layout of the case, My new cases are storing in standard case object, but I have to call that custom vf page in my community cloud. Can you please help ...
0
votes
0answers
30 views

Select Radio button in HTML table

I am trying to display each select radio button in a separate html table column. I want irrespective of the size of the screen, the radiobuttons always display perfectly under the emoticon. The end ...
0
votes
0answers
22 views

OnChange ActionSupport event not triggering

I want to do something pretty basic: Enter a Sales Order Number (Lookup field) and then select the Serial Number of an Item from a Picklist. The following code is working but it's not reRendering the ...
0
votes
0answers
23 views

Transpose table as PDF issue

I want to display the transpose table in PDF. Name : Bharath : Graham : Andrew Age : 25 : 26 : 27 Country: IND : UK : US I have achieved with the help of Bob Buzzard's Rotating ...
-2
votes
0answers
27 views

An internal server error has occurred Error ID: 578365434-163689 [duplicate]

when i running a visualforce page contains an aura component i have faced this error with no log: An internal server error has occurred Error ID: 578365434-163689 (1528725411) what mean this error? ...
0
votes
1answer
32 views

Workflow - Error - Visualforce email template - External image

I'm getting a weird error when trying to use my workflow to send out a visualforce email template. The visualforce email template generates a PDF attachment (from VF component) and works fine when I ...
0
votes
2answers
36 views

retriving Objects,Visualforce,apex permissions from permission set via SOQL in apex

I would like to retrive the Object,Apex Class,VF pages,Tab settings etc from a permission set via apex. I'm not able to find the exact query for it. Found the PermissionSet class in salesforce fits my ...
0
votes
0answers
20 views

How to close the visual-force page opened as an iframe in the lighting view

I am calling a visualforce page on click of a button (URL type) as displayed below: On click of a button below page is opened. Now I am not able to Close this page to go back to the record page. I ...
0
votes
0answers
30 views

How to check List contains?

I would like to check if List contains the serialnumber. 1.User select items. 2.Next page, user select options. Items and options are related by serial number. So, User want option-select-page to ...
0
votes
0answers
24 views

Updating child records of a custom object with parent object's standard controller and extension to find related children

so I have a VF page in effect that grabs the child records (Child__c) from a parent record (Parent__c) to fulfill(remedy in this case) a mass update request for the child records of the parent. The ...
0
votes
0answers
37 views

View State Error Uploading Files

I have a visualforce page that allows for uploading multiple files at one time (up to 10) I have tested it several times in the sandbox and had no issues. However, I am now getting intermittent view ...
0
votes
2answers
35 views

Global JavaScript variables not working in Visualforce

Hi folks I apologize if you have seen this one but after some extensive google searches I still came out empty. I want to use global JavaScript variables in my visualforce page but only local ...
0
votes
2answers
36 views

Error: Unknown constructor - Custom Controller

Hi I'm new building Visualforce Pages with Controllers and I'm sure I'm missing something stupid here but I'm getting the following Error: Error: Unknown constructor 'AuditTeamControllerExtension....
0
votes
0answers
33 views

Unlocked packages with namespace - visualforce page isn't loaded

I've two managed packages (classic managed package - not packaging 2.0). One is extension pack to the other. It uses classes, fields, objects and so on from core package. I'd like to create some ...
0
votes
1answer
40 views

Get parent URL from iframe by APEX

I would like to get URL in our community. Visualforce page in community, getUrl() returns incorrect URL. For example, On visualforce page, I can get url by this code. function routerNew(){ ...
0
votes
1answer
21 views

How do I cancel a 'window.open' from a commandbutton?

I have the following CommandButton: <apex:commandButton value="View Statement" action="{!openInvestmentStatement}" title="View Statement" oncomplete="window....
1
vote
0answers
23 views

Access apex variables from non visualforce markup

I want to execute some javascript in a Visualforce page: function newWasteAssessment(){ var siteid = '{!siteID}'; console.log('new waste assess: '+siteid); if(sforce....
1
vote
1answer
21 views

How do I use custom properties that include a colon (like <div :data=“data”>) in Visualforce?

Many Vue libraries include components that use colons to signify properties, like Buefy's table syntax: <div v-cloak="true" v-if="MyJSONData != null"> <b-table :data="data" ...
0
votes
2answers
24 views

Account Redirect page for EDIT is working for VF pages but for standard layouts its malfunctioning

The below Account Redirect page for EDIT is working fine for VF pages but for standard layouts after editing the record it is not returning home page instead of account detail page. Am i missing ...
1
vote
0answers
30 views

Showing progress bar through ajax request in visualforce page

I have created a vf page to upload MultipleFiles at a time. Now using AJAX request i am passing the file to Salesforce server and using addEventListener to show the progress bar, The issue here is the ...