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

select list in visualforce component disappears after rerender

I have an action function that calls an apex method. I have re rendered one of my output panel in this action function. On rerender the select component disappears from my output panel. Below is my ...
0
votes
0answers
17 views

Unable to fetch values to visualforce custom component from component controller

I have to display customer details in visualforce component. I am able to fetch values from wrapper class to vf component controller but not able to display values in VF component using apex:repeat. I ...
0
votes
0answers
13 views

HTML Card are not working in visualforce Email template

i have two questions Q1). I create visualforce email template using the card for designing. code for card <div style="width :auto;overflow:auto; box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);...
0
votes
1answer
21 views

Controller method not invoking when page refresh avoided

I have written an Apex method which sests the value to an automatic property called 'showPopup'. public boolean showPopup { get; set; } public void showWarningPopup(){ ...
0
votes
1answer
38 views

Capturing the country by IP Address without using an API [closed]

I am developing a VF page in a customer portal and dynamically rendering a text inside the page based on the Guest user's country. Currently I have achieved this using the below endpoint. http://...
1
vote
1answer
13 views

Visualforce: honor newline character from content retrieved by controller

I have a visualforce page that renders a pdf where the controller makes a call to an external service to retrieve legal content from a single source of truth. Someone, in their infinite wisdom, ...
0
votes
1answer
38 views

Add button in visualforce email template

I create visualforce email template when i add the code for button <apex:form> <apex:commandButton action="{!send}" value="Send my email" id="...
0
votes
1answer
32 views

Call to Messaging.InboundEmailResult handleInboundEmail from other apex method

I have the email service class "Messaging.InboundEmailHandler" I create visualforce email template"CreateLead" I create visulforce component "createLead" Now I want to ...
0
votes
1answer
19 views

Change value in server

currently I have an error at function: yesButton which is: Uncaught Action failed: c:LCC_App_rej_Return_Shipment_c$controller$yesButton [Cannot read property 'Final_Approved__c' of null] My scenario: ...
0
votes
1answer
23 views

Visualforce rendered if list is empty

I'd like to render a VF component if a list is empty, but the VF page is giving an error of "Unknown property 'CheckOpps.opportunity'. How to correct this error? I am building the list in a ...
0
votes
0answers
15 views

Pass URL for Experience Site into Visualforce Template

I have a flow to send users to an Experience website. The initial set up of their user will happen by an admin on the backend. Then they will send an email to the user requesting them to be sent to a &...
0
votes
0answers
20 views

Multiple Tab Synchronization in Community Portal Using Loacal Storage

I am working on visualforce community portal and there I need to synchronize the browser events across multiple tabs in order to capture auto logout function. The below code is working fine per each ...
0
votes
0answers
22 views

Notes Component on Campaign Member Layout

I see that the Notes component is available on most Objects except the Campaign Member Object. I'd like to add the notes component to the Campaign Member page layout and lightning page. Is there are ...
0
votes
0answers
21 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
25 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
44 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
15 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
39 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
14 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
37 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
13 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
13 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
118 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
14 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
120 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
103 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
48 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
22 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
47 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
185 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
139 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
46 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
63 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
28 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
16 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
118 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) . ...
1
vote
0answers
26 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
41 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
20 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
21 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
73 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
306 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
29 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"> ...

1
2 3 4 5
23