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

Hello, does anyone know how to make the custom email template respected by outlook?

I'm developing a custom email template in the visualforce component, but outlook opens this email all unconfigured, the impression I get is that it ignores the css. I did google searches, I'm using ...
0
votes
2answers
19 views

Hello, how do I pass the value of a controller variable to a visualforce component?

I want to test on "if" if the value inside bemSize is greater than 1, but salesforce does not recognize the bemSize variable, in the code it is simpler to understand, thanks for any help /o/ ...
0
votes
0answers
13 views

lightning:isUrlAddressable returns null pagereference when the aura component is called inside Visualforce

The value of pagref in var pageRef = component.get("v.pageReference"); turns Null when the Aura component is called inside the visualforce page. The visualforce overrides the new button. ...
0
votes
1answer
11 views

I write a Iframe controller and for my visualforce Pdf but getting an error Unknown constructor 'EstimatedCostsheetCtrl.EstimatedCostsheetCtrl()'

This is vf pdf <apex:page standardController="Opportunity" extensions=" EstimatedCostsheetCtrl" renderas="pdf" showheader="true" sidebar="false"&...
0
votes
0answers
50 views

Uncaught TypeError: Cannot read properties of null(reading 'className') on report chart through visualforce page

I've created a VF page in order to show a couple of Report Charts using information from related Records. Everything displays as expected. But I am getting error on VF page. <apex:page ...
0
votes
0answers
19 views

slds validation is not consistent on some are JavaScript others are ServerSide for the same logic

Problem WE have different kinds of validation error messages appearing. We want to give a consistent user experience, but are struggling to do so. Any feedback would be helpful. Server Side ERROR ...
1
vote
2answers
44 views

Apex:Form is inconsistently using JavaScript validation versus ServerSide Validation

I have very peculiar problem. I have two components that are in a visualforce page. The design is the same for all the components. We get a list of records and immediately below it we have a form that ...
2
votes
1answer
25 views

How to refresh datatable after saving form in Visualforce with CustomController

I'm trying to create a apex:form with an input section where several fields are rendered and the user can save the record. Below this form, is an apex:datatable. I want to rerender the input fields ...
0
votes
0answers
7 views

How do you prevent Apex:CommandButton sets focus to top of page?

I have a page, with several visualforce components on it as below: <apex:page> <c:componentV1/> <c:componentV2/> <!-- and so on... --> </apex:page> Each component has ...
0
votes
0answers
15 views

Override required property on apex:inputField so that page can refresh?

I'm using fieldSets on a visualforce component and form. There is a formula {!OR(f.required, f.dbrequired)} for the required property. Main question, does this have to be modified with JavaScript? The ...
0
votes
1answer
26 views

Apex Component Controller returning Null for simple string value

TL;DR Passing a simple string to component controller is returning null. I have already read this post but it didn't seem to imitate what I'm doing here. Pass value from apex component to controller ...
0
votes
1answer
46 views

Controller doesn't load with custom visualforce component and email template

I have requirement to bring child object field in email template. I have created custom controller "quoteEmailTemplate" that uses a SOSL call to return a list of Cabinets , I have created ...
0
votes
0answers
20 views

Open link in a Visualforce Page(rendered as PDF) to a new Tab

I have a Visualforce Page which is rendered as a PDF. In the Visualforce Page(PDF), I have the following piece of code <apex:outputpanel rendered="{!!isRevOwner}"> <p> <a ...
1
vote
2answers
276 views

How do I round up a Decimal to the nearest 1000 in Apex code?

I have a Visualforce PDF page with decimal values in it and these need to be rounded to the nearest 1000.00. If I do decimal x = Math.round(x) it just takes it to the nearest value on the left. Eg I ...
0
votes
0answers
12 views

Display Visualforce Email Template Body with VF Component in LWC

Before sending out an email I have to preview the body of a Visualforce email template in 'lightning-input-rich-text' component in LWC. The VF email template has a VF component inside it to generate ...
0
votes
1answer
27 views

Getting an email without list of account

I have created a controller, vf page, component to generate a list of accounts and to share with email. Controller: public class sendEmail { public String EmailId { get; set; } public List&...
1
vote
0answers
102 views

Can I edit the default Digital Experience site's 'Reset Password' page?

In a Digital Experience site: Administration > Login & Registration > Password Pages > Reset Password. I'm able to choose between "Default Page" and "Visualforce Page"....
0
votes
1answer
23 views

how to redirect on a button click to create a child object with standard controller in VF Page

Hi I have a parent object detail page opened . I have added a VF component for displaying child object For Ex Approval__c parent object page has a VF component to add comments which is done through ...
0
votes
0answers
18 views

Apex:relatedlist pageSize attribute is working for other users except for the creator of the code

I'm trying to create a custom related list enclosed in a VF Component that was called in a VF page using apex:relatedlist and I'm having trouble with the functionality of the pageSize. <apex:...
0
votes
2answers
36 views

How can render fields in a visualforce page based on condition

I am new to salesforce and I need to render a field modification_date__c on the Opportunity page based on the condition- if the field is_modified__c=true. is_modified__c is a picklist field. Any ...
0
votes
1answer
28 views

How can I hide a lightning:input using aura:if?

I'm building a component and I would like a field to appear only if it has not been filled in. It's working fine to hide when the field isn't empty, but when I need to fill it using my component ...
0
votes
1answer
18 views

Close child Visualforce page from parent visualforce page

We have a child visualforce page that opens from parent VF page using standard controller. We enter some values that needs to be updated back to parent page and close the child VF page. We want to ...
0
votes
1answer
20 views

How to know if an apex class or visual force page/component or lightning component was deleted?

How to know if an apex class or visual force page/component or lightning component was deleted? Is there a specific way to see which apex class/ visual force page/lightning components were deleted?
0
votes
0answers
32 views

When creating a visualforce that is called by a button it gets that name in the console case and I can't remove it

When creating a visualforce that is called by a button it gets that name in the console case and I can't remove it. What would be the solution. <apex:page standardController="Case" ...
0
votes
1answer
19 views

Unable to fetch contact Name from case using apex list. How do I do this?

I am trying to fetch contact names from case object using apex class but instead of contact name its giving me contactId. Please help me to fetch Contact Name. Expected Output: DEBUG|(Case:{Name=...
-1
votes
1answer
59 views

Is it possible to add a Real Time Stock Tracker to a Salesforce home page? [closed]

Is it possible to add a Real Time Stock Ticker to a Salesforce home page using the following ticker symbols? S&P 500 (^GSPC) Dow Jones Industrial Average (^DJI) NASDAQ Composite (^IXIC) Russell ...
0
votes
2answers
49 views

Hi, I would like to know if anyone can help me to write a method to have better this code and if this have errors can you tell me that error

public class MyPageController { public void recalculateTotals() { List<MyCustomObject__c> myCustomObjects = [SELECT Id, Totals__c, Recalculate__c, Value1__c FROM MyCustomObject__c]; ...
0
votes
1answer
21 views

multiselect pick list - LC and Visualforce component

I basically need to build a multi-select picklist component that works both in Lightning and Classic. There're already solutions available for both scenario, LC embedded in FlexiPage and Visualforce ...
0
votes
1answer
33 views

Webservice callout in Apex component used in EmailTemplate thrws Programmer Error: transaction committed or rolled back while performing api operation

I have an email template which I need to build using many information , so I have used apex component <c:EmailTemplateComp ObjectID="{!relatedTo.Id}" show_url="false"></c:...
0
votes
2answers
67 views

Why am I getting this error: Unknown method 'AccountStandardController.Previous()'?

<apex:page standardController="Account" extensions="AccountTitlesController"> <apex:form > <apex:pageBlock title="Títulos" id="...
0
votes
1answer
37 views

Unable to display table data with offset by using custom controller pagination in visualforce

I'm very new to SFDC and now I'm trying to implement pagination using offset values. But I'm getting this error: Return type of an Apex action method must be a PageReference. Found: visualforce.el....
0
votes
0answers
25 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
20 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
1answer
22 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
43 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
15 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
224 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
195 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
22 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
65 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
45 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
23 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
29 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
22 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
58 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
144 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
18 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
56 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
21 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
70 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/...

1
2 3 4 5
23