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
0answers
14 views

VF Page with the Multi select picklists

I am trying to use the multi select picklist field in my VF Page. The multi select picklist field has a default value, I was hoping when I use this field in the VF Page I should be able to see the ...
-1
votes
1answer
29 views

Invalid Id on visualforce

I'm trying to insert a record but it is displaying this error: Invalid id: Name of record . can anyone check it? Controller public class NightFlexList2Con { public string movieid{set; get;} public ...
0
votes
0answers
15 views

Error: Cannot read property 'apply' of undefined throws at https://commission-calculator-dev-ed--cycc.visualforce.com/auraFW/javascript [closed]

enter image description hereSearchUserComponent.html <div class={formElementClass}> <div if:false={isLabelHidden}> <label class="slds-form-element__label&...
0
votes
1answer
35 views

VF Page is not updating the record

I have a VF page to update couple of fields on the Opportunity record, it is a simple VF Page like below <apex:page standardController="Opportunity" extensions="Opportunity_UpdExt&...
0
votes
0answers
10 views

How to set Lightning Event in dynamic Lightning Component

I create a Lightning Aura Component with Lightning Event. Please see follow code. <aura:component > <aura:attribute access="global" name="flowName" type="String&...
0
votes
0answers
17 views

How to insert a record to another record in visualforce page?

Can anyone give an example? I have a hard time doing this. I am trying to insert a specific record to a different record from another object. so far, it's only creating a new record from that object.
0
votes
1answer
20 views

Data Mapped from controller is not visible in VF page

I have tried retrieving values of data from the controller and map them to the VF page. But, the mapped data is not being visible on the VF page, whereas in the debug of the controller it is visible. ...
0
votes
1answer
23 views

How to display recently created record link in visualforce Email Template without using an Apex Custom Controller?

I have objects with lookup relationship "A"(Parent) and "B"(Child). Email need to be sent to User whenever a New record "B" is added on "A" and Email body ...
0
votes
1answer
38 views

Mouse Hover custom helptext tooltip in a Visualforce page

I want a tool tip next to the Label 'Finance Sources'. If I hover the cursor on the label 'Finance Sources' the tool tip does not appear. However, if I hover the mouse above the label the tool tip ...
3
votes
1answer
74 views

Visualforce components disappeared after an action

I am looking into a strange Visualforce effect. Now the problem can be simplified using the following example. MyController: public class MyController { public String firstName {get; set;} ...
0
votes
1answer
31 views

Order of execution of getter setter methods in Custom Controllers

I am trying to learn custom list controllers but struggling to understand how the getter and setter methods execute using standard set controller. Can anyone please help with code comments as to how ...
0
votes
2answers
33 views

My VF page didn't load correctly

My vf page doesn't load correctly. I have to create a button just to load the contents of it. can anyone check it for me? here's the code: VF PAGE: <apex:page controller="NightFlexList2Con&...
1
vote
1answer
17 views

Error in Preparing Msword document in salesforce visualforce/apex page

I am preparing Msword(Proposal) document in salesforce visualforce page.There is a small box in a header and footer level and special character in the content. I want to remove the small box and ...
0
votes
1answer
44 views

Is it possible to send data from visualforce page to lightning component?

I am currently using a visualforce page inside a lightning component.Is there any way to set the parent lightning component attribute from visualforce page or send data to the lightning component from ...
0
votes
1answer
17 views

How Can I Pass Data From My Visualforce Page To A Visualforce Component Inside of It

I have several visualforce components inside a Visualforce page. Instead of doing my SOQL queries inside each component (through an apex controller), I'd like to have a single soql query inside the VF ...
0
votes
1answer
14 views

Calling component controller through VF page by passing id as parameter

I have to write a test class for a controller . It is a component's controller. The component is called in a VF page in below fashion <apex:page standardController="Obj1__c" extensions=...
0
votes
1answer
30 views

Issue with Export to Csv when name consists of comma

we are trying to export data into csv file using Apex and Visualforce page in Salesforce . The data is being exported but we have an issue . Here we are exporting record from an object(Text Fields) . ...
0
votes
0answers
17 views

Why are my public URLS from Assets returning http instead of https?

I have images in my Assets library that I'd like to display in my Visualforce Email templates. To do this I have created some functions in my VF Controller like this: public String orgId { get { ...
0
votes
0answers
14 views

Is there any to check scheme url available or not in Salesforce App

Currently I face a problem, my product like follow structure. I want to know if our customer install My App or not, if not I will show a dialog tell him to install My App. I want to ask about is here ...
2
votes
0answers
27 views

Override Standard Marketing Cloud Connect LeadActions / ContactActions (Visualforce Pages)

Standard MC Connect package includes LeadActions and ContactActions (Visualforce Pages) Currently, on the Lead and Contact Record Page, 3 buttons are shown ugly with a large margin at the bottom. Is ...
0
votes
1answer
16 views

Email has different styling than VF email template preview

I am no sure if anyone has this issue or this is related to gmail. Visualforce email template preview styling is want I am looking for. However , the recieved email is plain and not table border in it....
0
votes
0answers
19 views

Error occurred trying to load the template for preview: Attempt to de-reference a null object

VF Contrller:: public class ComponentHandler { public id DispatchId{get;set;} public list orders; public listvarStr; public list ordItms; public listcaseIds; public list casess; public List ordId; ...
0
votes
1answer
39 views

Are Visualforce templates possible in Visualforce email templates?

So, let's say you want really beautiful emails sent from Salesforce. You build all the HTML to make them look amazing and add a bit of Visualforce to make them more dynamic. But then you add a couple ...
0
votes
1answer
67 views

Using Custom Controllers within Visualforce Email Templates

I am trying to create a VisualForce Email Template, in this emailTemplate i need to get value from Custom Objects.(This Object is not related to Any other Objects - This is the Object Which i am ...
0
votes
0answers
15 views

contentType=“text/plain” is not taking in line breaks in a visualforce page

I have built up a Visualforce Page, which gets built up dynamically and is sent over as an Email Template <apex:page controller="EmailController" contentType="text/plain"> ...
2
votes
1answer
26 views

Can String literals be passed from from a VF Page to VF Component then to Apex Controller to be modified?

I have an interesting situation where I'm testing a VF Component by passing string literals from a VF Page. Some of these strings are then fed to a Custom Component Controller to be modified before ...
0
votes
0answers
16 views

How to override the language with apex:outputText for date formatting?

According to the docs the outputText component is locale sensitive and can even override the language by setting the lang attribute. <apex:outputText value="{0, date, EEEE}" lang="da&...
0
votes
0answers
43 views

Calender not coming up on VF page input field

I have below VF page code . I am fetching values from controller . So there are mix of data types coming from it which are date type ,string ,integer . <apex:pageBlockSection title="Inputs&...
0
votes
1answer
37 views

How to toggle off sforce.connection.update DML updates in a visualforce readOnly page?

Hello Salesforce community, I have 2 vf pages, and 1 vfp component. Each page wraps the same component. The only difference in the pages is that one apex:page tag has readOnly="true" ...
0
votes
0answers
35 views

Static resources pdf file open in a new tab

I have one vf page pdf which is dynamic and there is another (staticTest_pdf) which i have stored in static resources. and my requirement is open both pdf after click on Action button (call Lighting ...
0
votes
1answer
58 views

How to update a google map in a visualforce page component without refreshing the page

I have a visualforce page component that loads a google map at the push of a button, but it only works by using window.onload in JavaScript which refreshes the page, yet I want to keep the focus on ...
0
votes
1answer
36 views

Collection size 79,276 exceeds maximum size of 10,000, extract record in csv formate

We are facing issue when extract data on click of a button, object have 81,258 records in the query. We click on that we are facing an error. VF Page: <apex:page standardController="...
0
votes
0answers
42 views

Visualforce Render as PDF pagination [duplicate]

I have a visualforce page with a component to create a tabular of timecard data. I would like to have the header rows repeated on each physical page and possibly even include a page number. Does ...
0
votes
1answer
30 views

How to destroy LightningOutApp

Can anyone please help me. I have implemented the LightningOut using visual force page to call a lightning component. When I am trying to destroy the lightning component using destroy() which is ...
0
votes
1answer
17 views

Insert parent and child record and reference parent in a single VF page

I have a VF page that inserts two records in a single page: Insert recipient__c object with required fields: school__c Insert scholarship_award__c object with required fields recipient__c, year__c, ...
0
votes
2answers
45 views

How to display static resource image in visual force component?

I have uploaded image to static resource. i just want to display it on the visual force componet (apex:component) . i tried this way <apex:image id="theImage" value="{!$Resource....
0
votes
2answers
593 views

Pass record ID to custom LWC Component and Modal Flow Screen

I am using lightning and I have a custom action button on the standard Account Detail screen. When the button is clicked, it opens up a Flow Screen which I have my custom Lightning Web Component (LWC)...
0
votes
0answers
17 views

Visualforce apex form not saving records

I created a basic VF page with an apex:form component however when I preview it and enter details, the record is not saved in my org. The same happens when I add the component to a community - is ...
0
votes
0answers
13 views

How to use custom VF component in managed visualforce email template [duplicate]

I am trying to use custom vf component in managed vf email template but it is giving me an error saying unknown component. My vf component is set to global already and all the attributes are also set ...
0
votes
0answers
19 views

Custom Dependent Picklist VF Page

In the image, There is a dependent picklist with field dependencies between Portfolio__c and Business_Line__c . Its values are stored in a wrapper class SolutionMapper. But now I have to convert it ...
0
votes
0answers
31 views

Page numbers in tables of contents(index) should be generated automatically

I am using Visualforce page and i want table of content(index) with page number. i am using the below code but i am not getting page number. or is there any other way to do the same? in vf page for ...
0
votes
0answers
11 views

How to include pageBlockItems in a apex:component?

We have a block of code that will be repeated several times in several VF pages. I didn't want to have to put it in each and then in the future have to find all the references to update it. My ...
0
votes
1answer
60 views

System.EmailTemplateRenderException: EMAIL_TEMPLATE_MERGEFIELD_ERROR: SObject row was retrieved via SOQL without querying the requested field

An Email template containing a VF component is being launched by flow. Email Template <messaging:emailTemplate subject="Manifest - Maritime Carrier Notification" recipientType="...
0
votes
1answer
47 views

Manage Files in folder and subfolder, like copy your files in your subolder choice

I need help, I'm trying to create a folder explorer in apex class and visualforce, it's when I want to copy a file in the folder, I can chose the folder or the sub-folder where I want to put my file ...
0
votes
0answers
35 views

Regarding Lightning Web Component Tab [duplicate]

I have tried to create a LWC tab in tabs menu.but i could not able to select my component from the list.i have 3+ Components and even i've created my-domain too,still i'm facing the issue.....can ...
1
vote
1answer
40 views

Grid System Doesn't Style Correctly in VFP Components - Vertical Alignment

Using Lightning Design System in a VFP, displayed on a lightning page through a VFP component, the grid system doesn't appear to be working on vertical alignment. What am I missing? Code: <apex:...
3
votes
1answer
133 views

Visualforce Component wrapped in a Managed Package Visualforce Component throws the error: Unknown component c:mycomponent

I have a managed package installed in a subscriber org. The managed package contains a Visualforce Component that I want to use in subscriber org. My goal is to use a subscriber org VF component ...
0
votes
1answer
28 views

Invoke Apex Class Method from Account Page

I have a class method that reinstalls a closed account. I need to create a button on the Account page that calls this method. I have my class called ClosedAccountMethods implemented as such: public ...
0
votes
1answer
42 views

Show new values and old values on Visualforce page

I am trying to display Old values and New values of a record whenever certain fields are edited on a record. How do we achieve this. Edit: I am getting the Oldmap and newmap from the trigger context ...
0
votes
1answer
38 views

HelpText doesnot appear on the VF Page [duplicate]

I am trying to add the HelpText in to the VF Page and I tried few options like below and none of them is working for me. Added the HelpText in the <apex:pageblockSectionItem> <apex:...

1
2 3 4 5
22