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
2 votes
1 answer
18 views

Calling an extension method from a child component

I have a Visualforce component issue that I cannot resolve. VF page: <apex:page standardController="Opportunity" extensions="MyExtension"> <c:childComponent /> </...
user avatar
  • 81
0 votes
2 answers
43 views

Strange String behavior in Apex

I have old code where VF page is doing URL redirection with appending query params in URL. like URL="https://UatTest.com?target=FGI" - this is from label then we are appending params with ...
user avatar
  • 1,277
0 votes
1 answer
17 views

reference a VisualForce component attribute to use in itself

I would like to know how to get an attribute of a component in a visualForce code. In this code, wrappers is a map and I would like to put the value of the pageBlocktable to a List which is contained ...
user avatar
  • 23
1 vote
0 answers
31 views

How to use LWC Component in VF Page? I tried many tutorials but none of them works

I tried many online tutorials how to use LWC components in VF Page, but I stuck at only one result - VF Page is loaded properly but not showing LWC component. Only the VF Page heading is showing and ...
user avatar
0 votes
0 answers
11 views

Visualforce Component table data does not show up in classic visualforce email template

I aim to send an email from a record and include child records in that email, using visualforce and classic email templates. The child records are grouped. And their quantity consequently summed. The ...
user avatar
  • 1
1 vote
1 answer
28 views

Using <apex:variable> to store a simple math division gives the error: Unknown property 'NCQuote__cStandardController.Multiplier'

I am having an issue storing the result of a simple math division of two local VFP variables into a third variable called Multiplier. <apex:page readOnly="true" ...
user avatar
0 votes
0 answers
11 views

how to open a subtab

How to open a subtab from button click in visualforce component page. Help is needed. I already tried this. function previewOrderSubTab(orderId) { console.log('### previewOrderSubTab orderId:...
user avatar
0 votes
0 answers
15 views

Submit Search Child Form within Parent Form

I am not sure if there is a trivial mistake i am making - I inherited this code and VIsualforce is not my strong suit. I am trying to create a child search component form within a greater parent form ...
user avatar
  • 1
1 vote
1 answer
34 views

Is there a way to show/Invoke the Salesforce standard edit record from the VF page

Is there a way to show/Invoke the salesforce standard edit record from the VF page? I'm using DataTables to show the list of Tasks which is a Custom object, and I want to show up on the salesforce ...
user avatar
  • 143
0 votes
0 answers
34 views

Component not rendering updated controller variable on onchange event

I'm very new to Visualforce and Apex development. I've been trying to create a solution on AppExchange with these two, but there is an issue I am facing. Here it goes: <apex:inputText id="form-...
user avatar
0 votes
1 answer
37 views

Use a custom controller in Visualforce template

I am trying to run an email template from the Contract object, but in the email (or an attached PDF) print a list of related cases and specified fields for the cases. I've managed to do this ...
user avatar
  • 17
0 votes
0 answers
72 views

VF email template not showing some case field values when firing through flow

I have a recordtriggered flow on EmailMessage which fires on incoming emails. Whenever the email message is inserted the recordtriggered flow sends an email alert which is using vf template. When I ...
user avatar
0 votes
0 answers
31 views

Hide View Report button on Visualforce Component on Lightning Record Page

I am looking to add a Report to my Case Lightning Record Page. I want to filter the report by the Case Account so I cannot use the standard Lightning component (this can only filter by the record). I ...
user avatar
0 votes
0 answers
18 views

Refresh screen after input data on edit popup in Visualforce page with custom object

I have troubles that after I input data on edit popup, I need to F5 or reload page ===> new data is updated. I want to edit ==> click button save on edit popup, not have to reload the page and ...
user avatar
0 votes
0 answers
58 views

Multiple modals overlay in Visualforce page

Basically I have created a Visualforce page in that Visualforce page created a button, after click on the button calling Javascript method and from the Javascript calling "<apex:actionFunction&...
user avatar
  • 27
0 votes
1 answer
117 views

Get custom object Id in standalone Aura Component

I have an aura component that is launched from a custom hyperlink made with form assembly and is not on the detail page of any records. From what I understand, this means the "force:hasRecordId&...
user avatar
1 vote
1 answer
29 views

PDF Generation Failed when first result of list does not match criteria

"PDF generation failed. Check the page markup is valid." I have an apex data table to list cases related to a contract. However, I want to only display specific record types on the list. My ...
user avatar
  • 17
0 votes
0 answers
69 views

Redirect Visualforce page to List view

I have created a list view button that calls Visualforce page with controller that creates some records based on multiple Selection of records at the list view , after that I want to redirect to a new ...
user avatar
  • 55
0 votes
1 answer
115 views

Custom button of related list present in classic but missing in lightning

There is a custom onclick javascript button that is present in the related list layout of campaign object. but it is missing in lightning experience. need solutions on how to bring it and the button ...
user avatar
0 votes
0 answers
22 views

I want to add notes in aura component and display it to user without using sobject. a user should able to save everyday notes with date

<aura:component implements="flexipage:availableForAllPageTypes,flexipage:availableForRecordHome" access="global"> <aura:handler name="init" value="{! this }&...
user avatar
1 vote
1 answer
125 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 ...
user avatar
  • 255
0 votes
2 answers
59 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/ ...
user avatar
  • 255
0 votes
1 answer
32 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"&...
user avatar
0 votes
0 answers
311 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 ...
user avatar
  • 1
0 votes
0 answers
22 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 ...
user avatar
  • 1,278
1 vote
2 answers
59 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 ...
user avatar
  • 1,278
2 votes
1 answer
94 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 ...
user avatar
  • 1,278
0 votes
0 answers
9 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 ...
user avatar
  • 1,278
0 votes
0 answers
29 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 ...
user avatar
  • 1,278
0 votes
1 answer
51 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 ...
user avatar
  • 1,278
0 votes
1 answer
97 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 ...
user avatar
0 votes
0 answers
27 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 ...
user avatar
  • 1,093
1 vote
2 answers
664 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 ...
user avatar
  • 1,377
0 votes
0 answers
58 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 ...
user avatar
  • 1
0 votes
1 answer
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&...
user avatar
1 vote
0 answers
247 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"....
user avatar
  • 81
0 votes
1 answer
46 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 ...
user avatar
  • 197
0 votes
0 answers
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:...
user avatar
0 votes
2 answers
140 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 ...
user avatar
0 votes
1 answer
60 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 ...
user avatar
0 votes
1 answer
45 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 ...
user avatar
  • 55
0 votes
1 answer
23 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?
user avatar
  • 21
0 votes
0 answers
33 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" ...
user avatar
0 votes
1 answer
25 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=...
user avatar
-1 votes
1 answer
84 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 ...
user avatar
0 votes
2 answers
51 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]; ...
user avatar
0 votes
1 answer
57 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 ...
user avatar
0 votes
1 answer
68 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:...
user avatar
0 votes
2 answers
212 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="...
user avatar
  • 1
0 votes
1 answer
74 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....
user avatar

1
2 3 4 5
23