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
1answer
10 views

How to grab a my current Salesforce instance in an Apex class and reference it to my VF page [duplicate]

I know this should be a piece of cake but I am not a developer and just started today learning Apex. I have created an Apex class that supposedly grabs my current Salesforce URL instance then passes ...
0
votes
1answer
14 views

Constructor not defined: [APTS_BulkOrderBatchNew].<Constructor>(ApexPages.StandardController)

Error : Error while runnig test class. This vf is getting called from a list view button on the home page of custom object. VF Page: <apex:page StandardController="EQ_BulkOrders__c" extensions=...
0
votes
0answers
10 views

Hide User dropdown for <apex:inputField> with a lookup to User object

Hi I am trying to display a User lookup field in a VF page. But, I am unable to hide the selectlist that displays the User dropdown on the left of the field. I tried using the following css but, the ...
0
votes
1answer
11 views

How to use single instance of apex controller in VF Template and VF composition

I have a requirement to implement visualforce Template approach. As part of that I have page1, page2, page3(VF pages). page1 is the starter and composition page which defines content(empty for now) ...
0
votes
1answer
34 views

window.open not support resizeable in visualforce page

In a VF page, I have a custom button which opens apex page in new window when clicked. This works fine in chrome. But when I test the same in IE the window opens but the maximize button is disabled. I ...
0
votes
1answer
16 views

How to get get filesize by id inputfile component

How do I get get the filesize by id of the inputfile component into javascript. Currently I get the error checkIfEmpty is not defined. Visualforce <apex:repeat ...
0
votes
1answer
16 views

How to check value of inputfile in apex repeat on save with javascript

I have a visualforce page where I give the option to save 2 files based on an apex repeat. I check when a file is added on change if the filesize does not surpass 5mb and alert the user if needed. On ...
0
votes
0answers
13 views

How to change the values of a Map from Visualforce page?

I want to create a table that displays some time slots with a checkbox next to it. At the end of the table, there's a submit button. For the table, I used a Schedule__c object and also declared a Map, ...
1
vote
1answer
29 views

Why isn't my code working to place a lwc component on a visualforce page?

I have a lwc component that sits on a record page and I would like to have a Printable View button print the lwc - as far as I can tell the only way to do this is with a visualforce page. I've ...
0
votes
0answers
27 views

Store and access fields from records in a List created by a database.query

I found the following example code on https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_maps_example.htm After some minor changes to fit my needs, I got his running to show me ...
0
votes
0answers
26 views

How to invoke Visualforce page from normal Apex class [closed]

I am trying to invoke Visual force page from normal apex class but it isn't working please suggest. new to sales-force. Thanks In advance
0
votes
1answer
23 views

Removing trailing zero if .00 in Visualforce page?

I have a Decimal field which I am printing on a VF page as follows: <apex:outputText value="{!row.Opportunity.AnnualPremiumGross__c}"/> The values printed are as follows: 123.5 123.00 50.00 1....
1
vote
1answer
26 views

VisualForce page, PDF, styling list items

Normally, using CSS it is possible to add a white space between the bullet or number and the text behind it. <ul> <li style="padding-left: 10px;">Text entry</li> <li style="...
0
votes
0answers
8 views

Convert the unqualified selected lead from the list and convert them to account, contact and opportunity [closed]

I have created a visual force page for the unqualified leads which display all the non converted lead. This is the vf page I created. If a lead is selected and Convert lead button is clicked it ...
1
vote
1answer
32 views

Lightning Visualforce page header with icon has no margin and icon not showing. What is wrong?

I have a Lightning Visualforce page which I am displaying via a Detail Page Button from a standard Account page. I am displaying it as 'Display in existing window without sidebar or header'. It is ...
0
votes
1answer
12 views

Help with standard JS “Finalorg.ajax4jsf.javascript.AjaxScript” loading automatically

I have created a visualforce page in which the JS "Finalorg.ajax4jsf.javascript.AjaxScript" is loading automatically. How to stop loading it. The version "3_3_3.Finalorg.ajax4jsf.javascript.AjaxScript"...
0
votes
1answer
10 views

Save button (associated to standard controller method) not working on visualforce page (standard controller + extension)

I'm creating a VF page with a list of all contacts on the top and a form to insert a new one on the bottom but the last feature doesn't work. This is the code of the VF page: <apex:page ...
0
votes
0answers
15 views

How to download standard Salesforce attachment in javascript using XHR

We have a VF page. From that page, we are trying to download standard Salesforce attachment using XMLHttpRequest in javascript. We are doing GET request with attachment download URL as the endpoint. ...
0
votes
2answers
36 views

Cannot call the lightning Component through URL

I am trying to call the Lightning component through a URL in the Page Detail button. The lightning component (CaseChangeStatus) is like below Component <aura:component implements="lightning:...
0
votes
1answer
23 views

Can Salesforce be used for multi user game type experience [closed]

This is extremely generic question about Salesforce capability. Can I develop an application where same UI is being shared between several users? Say for example I was building a card game, where a ...
1
vote
1answer
19 views

Any way to reliably navigate to the Apex Jobs page in both Classic and Lightning from a Visualforce page?

In some basic setup UI written in Visualforce, I want a link that takes the user to the "Apex Jobs" page in both Classic and Lightning. I note that "/707" (the key prefix for AsyncApexJob) does not ...
0
votes
2answers
17 views

I am trying to display a select list from a custom controller, and i get a “Read only property 'getObjectOptions.ObjectItems''” error

My custom controller: public class getObjectOptions { Map<String, Schema.SObjectType> gd = Schema.getGlobalDescribe(); List<SelectOption> options{get;set;} /**public getObjectOptions(...
0
votes
2answers
26 views

Could not resolve the entity from <apex:inputField> value binding '{!firstName}'.<apex:inputField> can only be used with SObjects

<apex:page Controller="PaypalProccessor" > <!-- Page Header --> <apex:sectionHeader title="Pay With PayPal" subtitle="Safe hai" /> <!-- Begin Form --> <apex:form >...
0
votes
0answers
16 views

Display Related List from a Custom Object X on several other Standard/Custom Objects which are not related to Custom Object X

So I have a use case where business would like to view Tasks/Notes and Attachments created via one object say Account to be visible under another Custom Object/Standard Objects and vice versa. I have ...
1
vote
1answer
29 views

Traditional For Loop for simple VF page

I have a hopefully simple question that I'm stuck on. I'm trying to introduce a simple for loop (or similar functionality) in a VF page for some apex field outputs. We're wanting to print X number ...
1
vote
0answers
20 views

Lightning Flow from Contact List View

I've created a flow with a screen. The desired outcome is for a user to select a few Contact records from a List view, feed them into a flow, which will prompt the user with a screen with a lookup ...
0
votes
1answer
12 views

SOQL query on related records in Javascript(Visualforce page)

I have written below query in Javascript(Visualforce page) and trying to access query result as shown below, but it is failing at second console log and giving error in developer console. var ...
0
votes
0answers
12 views

Unable to download image which is stored in attachment

I have used below code,but is not working in my vf page <a href="{!URLFOR($Action.Attachment.Download, attachmentId)}" class="btn btn-info"> Download </a> AND <a href="/servlet/...
-1
votes
0answers
18 views

Salesforce Handson experiences [duplicate]

I’m new to apex and VF. I want to practice and need more hands on experience. Could someone please suggest where I can get practice question apart from trailhead. Thanks a lot.
0
votes
1answer
25 views

Return back to Account after saving or cancel

I've a requirement, where I want to edit a task. Task are displaying as a VF Page in Pageblock Table. I've used action="{!URLFOR($Action.Task.edit,items.id)} on commandlink. Can anyone please let me ...
-1
votes
1answer
45 views

How to display field label in Dropdown in visualforce page [closed]

I need to display Lead labels in dropdown and account, contact and opportunity also in dropdown. public class objectController { public Map <String, Schema.SObjectType> schemaMap = Schema....
0
votes
1answer
26 views

Pageblocktable not showing records

I'm querying Task record from contructor and displaying in Pageblocktable but it's not displaying records in Pageblock table. Could you please let me know what went wrong? <apex:page ...
0
votes
0answers
9 views

lightningstylesheets on vf page messing up warning icon

I am using standard visualforce page with lightningStylesheets="true". warning icon is not user friendly. I tried to hide icon using below script which didn't worked. Please let me know if there is ...
0
votes
1answer
11 views

Visualforce Input Fields Not Binding in Nested Iteration Components

I have created a copy/paste code sample that replicates the issue: Visualforce: <apex:page controller="test" action="{!init}"> <apex:form id="renderTarget"> <apex:...
0
votes
0answers
12 views

Force.com site user authentication

We have an existing force.com site and due to the Site Guest User changes introduced with Spring '20 it has forced us to look at our user authentication mechanism. Does anyone have any suggested ...
0
votes
0answers
18 views

Display custom list of records in visualforce using SOQL query

I have a vf page on a workorder object. When I open the vf page on a wo record whose account name is ABC and po number (custom field) is 123 for example, I want to display a list of all the work ...
0
votes
0answers
15 views

How to update fields on auto lead conversion? [closed]

In visualforce page we can select fields using checkbox for lead,account,contact and opportunities and while saving the selected fields it should be auto convert the lead into contact,account and ...
0
votes
0answers
10 views

How to Download Image onclick in the visualforece page? [closed]

How to Download Image onclick in the visualforece page?
-3
votes
1answer
40 views

Pagination separetly is working good. But when i put it inside another code - buttons: first, next, previous, last do not work. What is the reason?

Controller ``` public class ProductTablePageController { //variables are here public Product_Table__c pr { get; set; } public List<Product_Table__c> Products { get; set; } public string ...
-2
votes
0answers
14 views

Show child object fields on visualforce page [closed]

I have 2 objects Debit_Note__c (Parent) and DB_Line_item__c. I'm not sure how to write a controller to bring fields from child and show it on visualforce page. Could anyone please help me with sample ...
0
votes
2answers
17 views

How to get language from visualforce into into controller extension

I am using a force.com site to show a visualforce page where I want the user to have the option to select a language. In the corresponding visualforce page I set the language. How do I get this into ...
1
vote
0answers
24 views

Visualforce field value keeps changing after save

I'm having an issue with my visualforce page updating values if after saving even if I don't update that value on the save instance. I think it may be that I have my Save method written incorrectly? ...
0
votes
1answer
22 views

Get contacts created by lead conversion

I was stuck at a point where I need to get the contacts created by lead conversion. Can someone tell me how to query those contacts when a lead is converted... I am new to salesforce so please help me ...
0
votes
0answers
11 views

Increase height of Visualforce Component for Salesforce1

Is it possible to increase the height of a Visualforce page for Salesforce1? without increasing the height in the page layout? Increase the height to be dynamic in which it will depend on how many ...
0
votes
0answers
19 views

MailingState field showing statecode instead of state/province Name

I am writing a visualforce email template and trying to show the recipient's mailingState Name. My piece of code is given below: <messaging:emailTemplate subject="{!$Label....
1
vote
0answers
22 views

Community Welcome Email Merge Fields Not Merging

I have a visualforce email template being used as the Welcome Email for a Community. <messaging:emailTemplate subject="Welcome to X" recipientType="User" relatedToType="Account"> <...
0
votes
1answer
36 views

Edit a picklist field and conditionally render vf page on opportunity page layout

I have a picklist field on my opportunity in which I am selecting FX BankNow value. When that is selected, i want the VF page to open/render so that the additional fields are populated. VF Code: ...
0
votes
2answers
60 views

NavigationMixin is not working in LWC that embeded in Visualforce page

My scenario is I have to override a button that called LWC. Due to limitation that not able to retrieve parent id in Aura, I have to embed AURA in Visualforce including LWC. The LWC is done nothing ...
0
votes
1answer
18 views

IE 11 browser treating input number field as input text by allowing non numeric values

I have a form in a visualforce page where it contains an input number field. In the IE 11 browser users are able to enter invalid characters such as letters and commas. I have tested in Chrome, ...
0
votes
1answer
29 views

Unable to get the edited values to Controller without using wrapper

I tried searching for a solution before posting it here but no luck. I have a VFP with account fields and custom InputText field which is used to capture "Other" value which is concatenated(some ...

1
2 3 4 5
312