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

Dynamic field labels in vf page

i have below VF page that is look alike of standard detail page. Now I need to change field labels in the vf page as per the user language. Can someone suggest a way out please?
0
votes
1answer
14 views

How to Add fields to step1 in Merge my accounts screen?

On click of "Merge Accounts" action link from account page it will take us to merge/accmergewizard.jsp wizard where we can Merge Accounts by Finding Accounts. On click of Find Accounts button you will ...
0
votes
1answer
19 views

Adding Multiple records in single save using visualforce page

Error: MultipleAccountsRecord line 9, column 6: The end-tag for element type "a" must end with a '>' delimiter Error: The end-tag for element type "a" must end with a '>' delimiter. VF code: &...
0
votes
0answers
10 views

Jquery inside apexpageblocktable

I am having a pagblock table with three picklists. based on one picklist value and text the second picklist would generate the values and based on selected second picklist value and text the third one ...
1
vote
0answers
15 views

RecordEditForm throwing error on sites with LightningOut when given a record Id

I created a lightning component which has a simple recordEditForm to allow users to edit/create contacts. Using lightningOut, I embedded it in a VF page, and then exposed the page to a Force.com site. ...
0
votes
0answers
24 views

Why is my read only field editable?

I need to make one field(Date) read-only in an object(Service Appointment). I've set the Page layout settings to "Read-only" I've unchecked the system permissions of profile "Edit Read-only field" ...
0
votes
2answers
31 views

Error: Invalid field 'size' for SObject 'OpportunityLineItem'

I would like to check the size of the OpportunityLineItem related list in a Visualforce Email Template like below, where relatedTo is an Opportunity <apex:outputPanel rendered="{!relatedTo....
-1
votes
0answers
21 views

Use Batch Apex for a Visual Force page

I am a newbie to Batch Apex so hope someone can help me out. My main aim is to search through all my contacts and return all those which are duplicates on a Visual Force page, and then a button will ...
0
votes
0answers
41 views

Split the currency with Comma [duplicate]

Everyone, I want to split them currency value with a comma, Example 8527388 to 85,27,388 but below code splits by value like this 8,52,73,88. Apex Class: public Double total { get; set; } total = ...
1
vote
0answers
39 views

How to remove linebreak from apex:pageMessages

I am using a apex:pageMessages in my visualforce page. The label Error is printed in red on one line and the error on the second line. How do I remove the breakline. Solution: Error: Wrong Username ...
-3
votes
1answer
21 views

System.QueryException: List has no rows for assignment to SObject Class.CurrentPage_Call.<init>: line 7, column 1

Apex: public class CurrentPage_Call { public Account acc{set;get;} public String acctId{set;get;} public CurrentPage_Call(){ acc=new Account(); acctId=ApexPages....
0
votes
0answers
19 views

Issue with apex:param inside a commandLink

I have a table with products with details and a deleting icon on the side. I having an apex:param tag inside an apex:commandLink tag. This is need to tell the Controller which row should I like to ...
0
votes
0answers
13 views

List button - VisualForce Page - Modal

Is there is a way to open the VisualForce Page of a list button (related list button) in a modal instead of in a new tab ?
-2
votes
0answers
26 views

I want to create a table in visualforce page that will show sales team performance? [on hold]

On click of button ‘Sales Team Performance’ display a table of performance for each user with following columns a. Total Won Opportunities b. Total Lost Opportunities c. Total In-Progress ...
0
votes
1answer
34 views

Upload a file attachment without apex:inputfile

I think the title explains it all. I am having a hard time finding a way to upload an image attachment without using the apex:inputfile component. I am building a UI free of any apex components. I am ...
0
votes
1answer
37 views

Downloadlink not working for Guest user site

I have created a link on a visualforcepage for Guest user.The link shows correctly with the correct id. When I try to download the link a new page is opened with the error: urlsite/ex/...
1
vote
0answers
27 views
+100

Link to new SObject page from list view button in Lightning with defaulted fields

My org just recently switched from Classic to Lightning, and there's one limitation I'm having a lot of trouble working around. Before the transition, we had a lot of URL hack buttons linking to the ...
0
votes
0answers
14 views

Need to clone existing visualforce page and add in member status

I would like to clone the existing marketing cloud send email visualforce page and add in the member status field from the component. Does anyone have experience doing this?
0
votes
0answers
40 views

Comma Between Numbers-VF Page

Comma Between Numbers Example: 300000 to 3,00,000 Here is My code below: <apex:outputText value="{0, number, #, ###}"> <apex:param value="{!ROUND(number,0)}" /> </apex:outputText>
0
votes
0answers
15 views

How to enable right click open new tab option along with the feature of left click that opens in same tab in visual force page

We have a custome emails section where we can open the email message if we click on the email subject. Below VF code we are using to achieve this. <apex:column headerValue="Subject"> <a ...
0
votes
1answer
25 views

how to limit the data to be displayed from the long text area field in the visual force page?

We have developed a custome emails section through custom vf page. Need to display the sub string of text body from the email message object. Below is the custome email section we have developed : ...
1
vote
1answer
24 views

VF Error: When accessing certain properties of a field set

I have a VF page in which I have an <apex:repeat> tag: <apex:repeat value="{!seHandoffFields}" var="field"> <apex:pageBlockSectionItem helpText="{!$ObjectType....
0
votes
1answer
20 views

apex:outputLink (in VisualForce Page) to Custom Lightning Page

Generally, in our custom visualforce pages we have a link from the record edit for that gets the user back to the listing page for the given custom sObject that looks something like: <apex:...
2
votes
1answer
27 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, ...
0
votes
0answers
20 views

List button - Visual Force Page

I need to create a list button with Visualforce page as Content source, that will appear in related list next to the button 'Add products', as you can see below. This related list is in Opportunity ...
0
votes
0answers
27 views

How to parse json string in map or list [duplicate]

Please help for parse json response. My json String is { "result":[ { "parent":"", "made_sla":"true", "caused_by":"", "watch_list":"", "...
0
votes
0answers
21 views

VF phone number display format

I would like to do one input text of phone number with bottom border only and the phone is separated into two parts: area code + number on the next format : XXX-XXXXXXX Within one input. It's mean ...
0
votes
1answer
24 views

How to conditional render an icon in component

I need a reusable component that will conditionally render a resource icon on a visualforce page. <apex:page title="Visual Test"> <apex:pageBlock title="Result Component"> ...
-1
votes
0answers
22 views

How to call visual force page from lightning Component | In Lightning Community [closed]

/i have lightning component in which there are two button on it 'I agree','Print' and i have made visual force page name 'printTctext.vfp' too, all i want is two open this printTctext.vfp visualforce ...
0
votes
1answer
41 views

How to pass a Set of Id's to a visualforce page having a custom controller from an apex class? [on hold]

Pass a Set of Id's to a visualforce page having a custom controller from an apex class. VF Page <apex:page controller="myVFPageController" renderAs="pdf" applyBodyTag="false"> <!-- Apex ...
0
votes
1answer
19 views

Display a particular section in Page Layout depending on a field value

I want to display a particular section "Narrative Details" on my page only if the value of field "Narrative" is Yes. If the field value is No, the section should remain hidden. I know we need to write ...
0
votes
1answer
41 views

My picklist values and multi-list selected records not getting passed from VF to Apex Controller

We are a small non-profit . Recently moved our org to Lightning experience. Since the Javascript buttons are not supported , I converted this JavaScript button to VF and called the Apex Controller. ...
1
vote
1answer
32 views

Button not Rendering when returning to page

I have a visualforce page with two buttons. When I navigate off the page and then return to the page, the Edit button is not visible. If I refresh the page, the Edit button becomes visible. The ...
0
votes
1answer
31 views

Page Block section is disturbing the table structure

I have a Visualforce page, which is showing table. <apex:page controller="TestControllerForIssue"> <style type="text/css"> .myClass { width: 50px; } </style> <...
0
votes
0answers
17 views

Einstein Dataset Creation issue - Invalid File Format

I am trying to create a dataset and train as per the below trailhead topic(https://trailhead.salesforce.com/content/learn/projects/build-a-cat-rescue-app-that-recognizes-cat-breeds/cat-recognition-app-...
0
votes
1answer
19 views

Creating text box with magnifier to search and select account from org

I am trying to develop a Visualforce page to search account and select from the org. Like we select an account on the contact. Need something like this on the page: Controller: public with sharing ...
0
votes
1answer
28 views

Callback method not getting called in Continuation Object

I am having a requirement where in i am doing asynchronous calls using REST API. I am using Continuation method to perform the asynchronous calls,but here the callback method is not getting called. ...
-2
votes
1answer
28 views

Show modal on vf page load [closed]

I need to show a modal after a vf page loads: the modal must be a confirm before action, and after clicking on the 'Yes' button, then some action from the controller must be fired. Y tried some ...
0
votes
1answer
14 views

I'm getting an error “Unknown property 'PDSrestCall.userProfile.ibmUniqueId'”

I'm trying to display my deserialized JSON on my VF page but I get Unknown property 'PDSrestCall.userProfile.ibmUniqueId' Help Please. PS i removed the API endpoint for security purposes. Here is my ...
3
votes
0answers
36 views

Continuation Apex Unit Testing - Lightning

With Summer'19 release continuation is available in Lightning. To make long running callouts. Continuation - Aura Dev Guide: https://developer.salesforce.com/docs/atlas.en-us.220.0.lightning.meta/...
1
vote
1answer
33 views

My Action Function is not Working with java script [closed]

Action Function not working. My apex code and visualforce page here below- public class BBH_Survey { public String Survey_res {get;set;} Public BBH_Survey() { CasId='...
0
votes
3answers
42 views

CSS change style base on valid input

I'm trying to style the asterisk ("*") inside the span element of a required field based on the "input:valid" property. <apex:input value="{!firstName}" id="firstnameId" required="true" /> ...
1
vote
0answers
35 views

ContentVersion file not viewable to Guest Site User

I have Salesforce Files associated with a Contact that I'd like to pluck out the ContentVersion Id in order to display the image on a public-facing Visualforce page (via Sites): <!-- This is ...
0
votes
1answer
30 views

Updating an array in controller to store user input from Visualforce page

I need to store input from user in controller so it can be used for calculations. To do this I am using an array, to get input in the controller. But getting issue: Subscript is invalid because list ...
-1
votes
0answers
14 views

Email sending record data in pdf format by submitting subject details [closed]

public class cEsend { public PageReference SendEmail() { Messaging.SingleEmailMessage email=new Messaging.SingleEmailMessage(); pageReference pdfExample=Page.BasicExample34; pdfExample.setRedirect(...
2
votes
0answers
17 views

Standard Component UI Sample

Recently, I started learning Visualforce and apex using trailhead. Following Visualforce Standard Component reference, there are only sample code and reference but there aren’t UI sample. It’s ...
1
vote
1answer
28 views

How to get details of user activity for CRUD operation using Eventlogs

I want to track activity of user using eventlogs object, it has many event types where we can track activity like Apex Execution, Trigger Execution, Page View details. But i am unable to find event ...
1
vote
0answers
13 views

Create an email reminder with related items based on criteria

I am trying to understand the most efficient way of going about implementing the following scenario. Any links or guidance will be much appreciated! Scenario There are two related objects Projects ...
0
votes
0answers
15 views

Get relative path to Visualforce page via Lightning component [duplicate]

I have an iframe in a Lightning component that points to a Visualforce page, but I don't know what the relative path is in Salesforce from Lightning components to Visualforce pages. I currently have ...
0
votes
1answer
23 views

Output panel refresh Issue

I am calling a JS function to call a pagereference method . This Save button is in an Output panel. <apex:outputPanel rendered="{!step4}" id="cciPanel"> <div align="center" draggable="...