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

Is there any restriction to view lightning component in Visualforce email template?

We have a requirement to build a custom visualforce component for VF email template and in that we are trying to display a lightning component. The lightning component is visible when we preview the ...
0
votes
1answer
17 views

Disable VFP Command Button on Click

I currently have an issue where users are button mashing a custom VFP Lead convert page and converting a lead into multiple Accounts. Based on the direction of this POST I was able to partially ...
0
votes
1answer
26 views

Apex Code for Campaign Member List

I've been struggling with creating code (I am not a developer) for a VP where all Campaign Members with certain fields completed (CampaignMember.Article_Link__c) are displayed in a table. The goal is ...
0
votes
0answers
13 views

How to pass value from one VF page to another and refresh page where value is sent(Both vf pages will be used as Components on Lightning record page)

I have to create 2 VF page (casecreate and KnowledgeArticles) Both components will be placed on Lighting Record page and these pages will be used as Components Case create page is created from where ...
0
votes
0answers
34 views

Auto Logout function is not 100% working for Visualforce Page

I have written an auto logout function for a community portal. This is inside a visualforce component and this has been exposed to a visualforce page. The problem here is this auto logout function ...
0
votes
0answers
13 views

Consolidate VF Pages into one Component; one uses Controller, other uses Extensions

I have a VF page that we want to have accessible by buttons in two different contexts. A: One Context requires that we use the "Controller" tag to assign the VF page's controller, as usual. ...
0
votes
0answers
20 views

How Can I Embed A Visualforce Component inside Lightning Experience Builder?

I am trying to embed a component from my Visualforce page inside the Lightning Experience builder. This will be specifically for the header and footer. I have a VF community and need the header/...
0
votes
0answers
11 views

Show modal when field value is changed

I'm stuck in this for literally hours, trying to figure this out but I havent had a clue yet. I want to show a modal, pop-up or alert if a field value in the standard Opportuntiy record page is ...
0
votes
0answers
11 views

Display header column in all PDF pages using VF

I am trying to show the header column on all the pages, if I pass extra data, then the data table expands to the next page the header is missing, I need to show the header on all the page. First page: ...
0
votes
0answers
19 views

How to Add Textarea Dynamically in vf page with Reference to records in object?

How to Add Textarea Dynamically in vf page with Reference to records in object Scenario: textarea fields should be displayed in vf page with reference to the records saved in custom object. For ...
1
vote
1answer
77 views

Inline Visualforce page vs Canvas App vs Lightning app

What are the difference between Inline Visualforce page vs Canvas App vs Lightning app. I'm looking to build an app that needs to inject UI inside detail page for an object. Should work for both ...
0
votes
0answers
12 views

Visualforce component datatable duplicates rows

I have a batch class which sends out email alert first of every month. Batch class triggers the email alert using Messaging class which then uses Visualforce component to have the list of records in ...
0
votes
1answer
44 views

Validating the Max and Min Length of the input in VF Page

I need to validate few input fields in the VF Page, the validation is to make sure all these fields entered are 6 digits in length and cannot contain alphabets. Not all the fields are required, user ...
0
votes
1answer
47 views

Validating the input field in the VF Page

I am trying to Validate the user input in the VF Page. This custom field is a Text data type and the Maximum length is 6. In the VF Page I need to make sure this field entered is a numeric and cannot ...
0
votes
0answers
17 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
37 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
1answer
36 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
11 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
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
32 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
74 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
58 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
33 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
50 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
23 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
75 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
21 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
39 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
18 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
20 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
60 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
209 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
20 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
27 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
45 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
52 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
39 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
81 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
60 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
37 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
69 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
32 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
22 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
148 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
2k 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
18 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 ...

1
2 3 4 5
23