Questions tagged [visualforce-component]

Visualforce components encapsulate a common design pattern and can be reused several times in one or more Visualforce pages. Salesforce provides a library of standard, pre-built components, such as <apex:relatedList> and <apex:dataTable>, that can be used to develop Visualforce pages. In addition, you can build your own custom components to augment this library.

Filter by
Sorted by
Tagged with
0
votes
1answer
40 views

Issue with Test Class unable to cover SOQL query and insert statements

I have created a VF page that is basically a form. The issue is that my test class is unable to cover the SOQL statement inside the retrieve method. Also, it is unable to insert ptw or cle in save ...
0
votes
2answers
36 views

Not able to display list of string in visualforce email template

I have a controller public class EmailController { public string AppId{get;set;} List<App_Child__c> aPRList=[select id,name,status__c from App_Child__c where App__c=:Appid limit 10]; ...
1
vote
0answers
46 views

Using custom fonts in visualforce email templates

I am creating visualforce email template and need to use custom fonts (mostly Neutraface Display, SalesforceSans, TrailheadBold2). Most of the search results i get are about using them in visualforce ...
1
vote
0answers
24 views

Send Approval Comments in Visualforce Email

I have a custom Visualforce email template with a VF component inside it that displays the most recent Comment from an approval process. It is built with the same approach shown in this blog post by ...
0
votes
1answer
24 views

Is it possible to use here 1 VF component for 2 VF pages?

I have a controller with 2 different methods: first takes the list of today's masters, and second - the list of tomorrow's masters. It's all the difference between my PDF pages: I made them as List ...
0
votes
0answers
13 views

'chaturl/chat/rest/System/SessionId' from origin VF page blocked by CORS policyResponse to preflight doesn't passcontrol check

VF Code:-- <apex:page> <apex:includeScript value="{!$Resource.jQuery}"/> <script> function myFunction(e){ alert('working'); console.log('Function called'); ...
0
votes
0answers
23 views

Call Custom Controller Extension Method in Aura Component Controller

I have a visualforce page that uses Javascript to execute a lightning component which fires off a flow (as seen below): function selectHandler() { var curUser = '{!curUser}'; console.log(...
0
votes
1answer
28 views

How to show fields based on a condition for other field

I want to show 4 custom fields (W__c, X__c, Y__c, Z__c) when other custom field have the following condition: If RealNumber__c < TargetNumber__c then show this field: W__c, X__c, Y__c, Z__c else ...
0
votes
0answers
68 views

Lightning Component issue sObject type 'Site' is not supported in Spring '20 Sandbox

I am having an issue saving any lightning component code in the developer console. I think that this must be an issue with Salesforce because even just changing string values with in html causes error ...
0
votes
0answers
83 views

how to set an attachment to the sendEmail quickaction apI through lightning component?

i need to populate the attachment on send email lightning quick action api. i can able to set the subject to the email quick action, but i need to add the attachment to the email. How can i send the ...
0
votes
2answers
43 views

How to convert json string to List<Map<String, Object>> in salesforce apex class?

I have this json string. [ { "id":2, "name":"Abc_SS", "description":"Abc" }, { "id":100, "name":"sales", "description":"sales" } ] How I can convert this json to List&...
0
votes
0answers
20 views

Contact Activity Timeline - adding other Contact related information (Cases created)

A question: would it be possible to add to the Contact Activity timeline items such as Case created , potentially also Chats & Messages from the service console? The idea being a more wholesome ...
0
votes
1answer
49 views

VisualForce Page - Apex:Repeat & Map not showing any values

I have problem showing my map value to the visualforce page, in my controller I populate the maps and create below method public Map<String, Decimal> getmapTargetCurrentMonth(){ return ...
0
votes
0answers
30 views

ActionSupport parameters not passing from component but will pass with same code outside component

Usually I'm able to find the answers to everything by searching, but I haven't come across any examples of this answered. I did find a couple questions that looked like they might be the same issue, ...
1
vote
1answer
28 views

Persisting Logs in Managed Packages

What is the best practice to persist logs from apex classes, batch jobs, and controllers? We are still in the development stage so we haven't considered LMA. We tried to store it in a custom object. ...
0
votes
0answers
30 views

Structure of visualforce page using standard controller, extension and wrapper of data?

I am creating a component to add to a contact record that shows aggregated note data from two different sources. Page <apex:page id="AggergatedNotes" standardController="Contact" ...
0
votes
0answers
29 views

Javascript Error when trying to use apex:actionFunction on service console

I have a visualforce component I am working on that simply has a table of data that is shown on a page layout within the service console. When you click on a link in the table, it opens a subtab using ...
0
votes
1answer
58 views

How can I pass a GET query param into my server side APEX controller?

Background: I am trying to redirect a user from an external site to my salesforce visualforce page with a GET query param as part of the URL. (This is part of a managed package) I want that parameter ...
1
vote
1answer
48 views

Trying to create an apex page with a specific height

I am not new to development but am when it comes to Salesforce Visual Force. I am trying to create a page that will be a certain height. When this Visual Force page is inserted into the Salesforce ...
0
votes
1answer
27 views

Pass the ID of current record to Visualforce Component from Apex Class/Controller

I'm working on a Visualforce Email Template which will be sent from the parent Loan (LLC_BI__Loan__c) record in Salesforce, and I'm trying to include fields from the child Entity Involvement (...
0
votes
1answer
12 views

Email address as a parameter in vf page

PageReference retURL = new PageReference('/OrderHistoryguest?orderNumber='+sapOrderNumber +'&email='+userEmailAddress); when i have passing email by apex class to vf page as a url parameter its ...
2
votes
1answer
188 views

Opening the VF page in a new Tab Lightning

We are converting a VF Page from Classic to Lightning and this VF page called from the button in Classic is like So when the button is clicked in Classic it opens the VF page in a new pop up window. ...
0
votes
0answers
12 views

Pass the new inputfield value to javascript before writing to the database

I have VF page. Some code: <apex:page standardController="CallReportHosp__c" extensions="CtrlCallHospEdit" id="CallsHospEditt"> <apex:form id="myForm"> <script type="text/javascript"&...
0
votes
0answers
9 views

Visualforce parent page child component communication question

I hope the following diagram elaborates the issue somewhat: Here is my use case: A VisualForce Page has the following area in it: A pageblocktabledisplays that shows some line items with some input ...
0
votes
0answers
26 views

Multiple File upload on public visualforce feedback form

I'd like to provide a multiple file upload module on a public visualforce page and I'm struggling with the upload process. As the upload process requires to have a record ID, how can I save the ...
0
votes
2answers
34 views

i need to use a visualforce component in an html body in my trigger which sends a mail

I have a trigger which sends a mail on update of the approval status . I am using a HTML part in that trigger to send the mail . In place of x I want to call my visualforce component which is ...
0
votes
0answers
78 views

FullCalendar.io timezone issues while rendering events

We're trying to render salesforce events in fullcalendar using jquery. We're facing some issues with timezone when rendering events in dayview/monthview/weekview. I'm rendering full calendar using ...
1
vote
1answer
28 views

VF controller function referenced by apex:actionSupport not firing

I'm trying to call this function but the debug statement is not working. <apex:selectList value="{!year}" title="Yıl" id="yearFilter" multiSelect="false" size="1" > <apex:...
0
votes
0answers
20 views

Visualforce Email template recipient type with multiple customized objects. Create customized object

Requirement is to use email template with visual force components, and send an email for each environment the contact is associated to. For example, contactA is associated with env1, env2, and env3. I ...
0
votes
1answer
16 views

Create picklist in visualforce from method return

How to create a picklist with the return from the following method in visualforce, currently receiving the following error: Unknown property AccountCreation.AccountNames @RemoteAction public ...
0
votes
0answers
32 views

How to add the hover to the Kanban view when you move the mouse over one record?

We can config the hover in detail page in the compact layout/ mini layout. However, for the kanban view, I think we will need to build the all Kanban in Lightning Component. Please correct me if you ...
0
votes
0answers
36 views

how to select all checkboxes by one checkbox in header

visualforce <apex:pageBlock > <apex:pageBlockSection showHeader="false" id="B" columns="1"> <apex:pageblocktable value="{!InvoiceList}" var="rs" id="A"> ...
0
votes
2answers
60 views

Email content not rendering when Pass custom relatedTo object's param from visual force email template to controller

I'm really confused by order of execution. I have tried with a few posts, but mine does not work. Please help with taking a look. I am able to receive the templated email, but there's no incident ...
0
votes
1answer
40 views

Visualforce Page : kindly read the info at the end of the code regarding pagination and Javascript function

Visualforce Page: <apex:page sidebar="false" Controller="Invoice_details" showHeader="False" docType="html-5.0" readOnly="true" > <html xmlns="https://www.w3.org/2000/svg" xmlns:xlink="...
1
vote
1answer
29 views

Custom component setter value being passed in to controller, but getter always returns null (or the initialized value)

The setup: I have a standard controller with two extensions on it. <apex:page standardController="Contact" showQuickActionVfHeader="false" extensions="ExtOne,ExtTwo"> <c:...
0
votes
1answer
65 views

Visualforce page insert lead and redirect to url

I'm very new to coding and trying to create a visualforce page form that will be published to external entities to get more leads, after keying in information required, hit save and the page will ...
0
votes
0answers
19 views

Unable to pass Lookup field input value from VF page to controller to be passed to another page on click of a button

I have a requirement to use contact to create a new case. I have created a new page using case.contactID input field. On pressing a command button, the contact selected should be passed to new VF page ...
0
votes
0answers
25 views

Email template relatedToType not binding values

I have done a full day of research, looked into many code examples, but could not figure out what went wrong with my code. Help please. My email template <messaging:emailTemplate subject="TEST-{!...
0
votes
0answers
45 views

“No remoted actions found to resolve” issue in Apex:Component

I am attempting to use a remote action in my apex:component to update an object, but am getting an error of "No remoted actions found to resolve !$RemoteAction.myController.applyCredit" My apex:...
0
votes
1answer
35 views

Getting different field label while accessing it in apex component

here the sObjectType is of Account type Map<String, Schema.SObjectField> fieldMap = sObjectType.getDescribe().fields.getMap(); for (String fName: fieldMap.keySet()) System.debug('Field ...
1
vote
0answers
48 views

Create Multiple PDFS from a Visualforce page

I have a VF page that is designed to export as a PDF. It looks at a parent record: Division__c and uses a component to loop through and create a PDF of all the child records: Region__c. Currently, ...
0
votes
0answers
24 views

Create common custom visualforce page for standard entities

I am trying to implement the visualforce page with in which I am showing phone number fields in detail page. For example , For any specific contact / lead / opportunity / account / cases I am ...
0
votes
1answer
25 views

How to Pass parameter value from controller to Apex:repeat getValue()

I wonder, how can I pass input variable to getValuesForRepeat in apex:repeat please. I.e, my apex:repeat renders different contents depends on inputVar1. Basically, <apex:repeat value="{!...
1
vote
1answer
23 views

Track click on a Visualforce component that plays a video

I am trying to figure out how to track (send to Google Analytics) when a user clicks to play a video that is referenced in a Visualforce page (below). <apex:page showHeader="false" ...
2
votes
1answer
115 views

Access parent controller attribute from Visual force component

I have one Visualforce page and one Visualforce controller. I have different attributes defined in the controller of Visualforce page as shown below public boolean firstPanel{get;set;} public ...
0
votes
0answers
31 views

Populating VisualForce Area (Home Page Component) with record count totals meeting criteria for the running user

I'm very new to working with visualforce and struggling to achieve the following. I want to create a Visualforce page / area component on the home tab layout which displays counts of records from a ...
-2
votes
1answer
89 views

RenderAs='PDF' Index in the Visual Force Component/Page [closed]

I'm trying to create a Visualforce Component with the renderAs="PDF" and I'm stuck on the issue with the auto-number/index. Is there a way to create the auto-number and a index page on the VF Page or ...
4
votes
1answer
110 views

How to use polyfill in visualforce component?

Link to polyfill: https://github.com/jonstipe/number-polyfill The polyfill is to allow increment decrement buttons in Internet explorer for I added the .js and .css file from the polyfill as a ...
0
votes
0answers
19 views

Dynamically assign values to VF page, render as PDF and attach it to mail

here is my scenario. From a method 'myClass1' I send Account, contact and a list of custom records to a method 'createEmailwithPDF' of another class - 'myClass2'. 'createEmailwithPDF' takes all the ...
0
votes
1answer
31 views

How to fix Apex:Inputfield Size when using slds sizing?

I am working on a vf page with a random number of fields. The problem I'm facing is related to the sizing of the fields. As shown in the screenshot, the contact number field is one long field instead ...

1
2 3 4 5
21