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
-1 votes
0 answers
13 views

Need some help or guidance to complete one Aura Requirement

Please help me to achieve these Whenever the user clicks on refresh button the values in all the fields should comes to default. (Clear the entered field data if any and refresh) Whenever the user ...
  • 1
0 votes
0 answers
17 views

what is the slds class for unmasking the value in </lightning-input-field> ->iam trying to add show/hide icon-its not working for preview

<lightning-icon size="x-small" icon-name={passwordIcon} alternative-text="Preview" title="Preview" onclick={passwordHandler} class=...
0 votes
1 answer
33 views

Conditional Rendering of a picklist

I need help to perform a conditional rendering where if a user selects a value from income type based on the selection, the income source picklist value should change, and I tried to achieve this ...
0 votes
0 answers
58 views

Trying to access LWC Component from vf page for custom change password feature in salesforce

Please find below code snippets <apex:page showHeader="false" sidebar="false"> <p>Test VF PAge</p> <apex:includeLightning /> <div id=&...
0 votes
1 answer
14 views

Getting Unncecessary whiteline space in the iCal attachment in Visualforce email template

I have a visualforce email template which has a Ical/Calender notification attachment ,which body is handled in a visualforce component. Afte downloading the iCal attachment and opening in a notepad i ...
  • 3
0 votes
0 answers
31 views

i am using einstein dashboard in external website and i am getting error No 'Access-Control-Allow-Origin' header is present on the requested resource

my task to show my einstein dashboard in external website so i used lightning out application but i am getting this error my code is app: <aura:application access="global" extends="...
0 votes
0 answers
21 views

i am using Einstein analytic dashboard id statically to show particular dashboard how to use it dynamically to show dashboard whichever i need?

My task is to show my Einstein analytic dashboard in external website , so i used lightning out application but now i'm only showing statically and i need to make it as dynamically using dashboard id ...
0 votes
0 answers
47 views

Success Message with Toast events not working

Js code import { LightningElement, api, track } from 'lwc'; import { NavigationMixin } from 'lightning/navigation'; import {FlowNavigationNextEvent, FlowAttributeChangeEvent} from "lightning/...
  • 11
0 votes
1 answer
34 views

How to get last iteration in apex:repeat tag in Visualforce

I am trying to get the last iteration record in apex:repeat tag and outputs the last iteration record using visualforce and not using apex. I tried using the first attribute but no luck. Please help ...
-1 votes
2 answers
52 views

Field History in Visualforce Email Template

Hi I am trying to use Field History for custom Object Work_Order__c in visualforce email template . I am facing error : Invalid field Work_Order__c__History for SObject Work_Order__c Could someone ...
0 votes
1 answer
27 views

VF Page "Selectors should be known"

I am new on VF page. So I have created a simple css method in my vf page like: <head> <style type="text/css"> tdstyleform { text-align: center; ...
1 vote
0 answers
31 views

Using reRender in visualforce commandbutton after the removal of JS alert/confim

We're trying to change some confirm() in a Visualforce Page form due to the deprecation of the alert(), confirm(), and prompt() APIs when used in a third-party context. We're trying to use the ...
  • 143
0 votes
1 answer
20 views

Command button rerender not working when there are other components under Apex:form tag

I am trying to learn about Visualforce pages, so consider me as a beginner :) The scenario I am stuck in, is as below: I am trying to re-render an outputText component on click of the command button. ...
1 vote
2 answers
78 views

Execute CommandButton Action Before JS Function (Without Controller)

SOLVED: See my answer below. I have a VF component on our opportunity detail page where users can enter input values on an apex form. There are multiple apex commandbuttons that produce another VF ...
  • 46
0 votes
1 answer
110 views

Javascript "getElementById" return null in Visualforce Page

Anyone help me, why Javascript "getElementById" return null in Visualforce Page. In my form, I have "Radio button" and "inputtextarea" My requirement is whenever click ...
  • 1
0 votes
1 answer
34 views

Unable to display contract fields in visualforce page

I have a visualforce page that represents a contract document, which I'm exporting as .doc file. This visualforce page's controller makes a query to get some of the fields of the contract record. Then,...
0 votes
0 answers
53 views

SFDX meta data deployment issue for existing apex component update

We have an issue to deploy apex components updates with new or removed attributes, or controller class variable updates. When deploying the component together with related apex pages, sfdx force:...
0 votes
1 answer
140 views

Apex Class for VF Component Error Missing return statement required return type: String (37:19)

I am trying to create a class that feeds logic into a component for a Visualforce Email Template. public String getBillingContact() { CaseContactRelation__c ccRelation = ...
  • 79
0 votes
0 answers
22 views

Unable to over ride the style for a outputField

I am trying to display an image from the rich text field on a VF page displayed on a page layout. However it feels like no matter what I try I am unable to adjust the size of the image. VF: <apex:...
  • 1
0 votes
2 answers
40 views

Unknown method in Visualforce

I am creating a self registration form using visualforce for community portal users.When user try to signup with details the details should match the contact details. Controller public class ...
0 votes
0 answers
49 views

How to use if else condition in VF Page

I am trying to use IF Else condition in VF Page. It is working for IF block but I am not sure how to use else block. Scenario is IF(Field="Hard Hat"), Show check box image; else show ...
0 votes
1 answer
199 views

Display Salesforce File link as a URl in VisualForce page which is rendering as PDF

Im creating the instance of the ContentDistribution for each Contenversion ids. and I'm referring this ContentDistribution's ID in VF page as a URl but its not working. So what I want is when a user ...
1 vote
2 answers
142 views

How to make a button disappear after clicking on it in vf page?

I created a save button in vf page VF Code <apex:page controller="Buffer"> <apex:form > <apex:pageBlock > <apex:pageBlockButtons location="...
2 votes
1 answer
89 views

Not able to change the name of a contact from a vf page?

VF Code <apex:page controller="Buffer"> <apex:form > <apex:pageBlock > <apex:pageBlockButtons location="top"> <...
0 votes
1 answer
286 views

Delete failed. First exception on row 0 with id 0035i000008hdheAAA; first error: DELETE_FAILED

I am coming across the above error while deleting a record from the database. The vf page code is as follows <apex:page controller="EditAll"> <apex:form > <apex:...
0 votes
1 answer
125 views

How to call apex:component (vfc) inside aura component

Can we call visualforce component inside Aura component? If yes, can you share the syntax.
0 votes
1 answer
166 views

VF component email template to send list of opportunities against each owner. The templates loads the only last value of list

//VF Component <apex:repeat value="{!oppUserList}" var="opp"> <tr> <td> {!opp.Name} </td> </...
  • 15
0 votes
1 answer
15 views

How to fetch same inputField with different lables in VisualForce page?

I have an object "Details_Page__c" which has a lookup field "Next_Change__c" associated with it. The object is initialized in my controller class - Details_Page__c detailsPage = ...
0 votes
1 answer
57 views

Unable to do DML in controller when using Visualforce Email Templates

I have an <apex:component> that is tied to a VF email template. I am assigning the AccountId as the attribute. The issue now is that when I try to do a field update in the Account record (DML) ...
0 votes
0 answers
51 views

Apex:Repeat - List of values are not displaying while the VF email is triggered

I have a requirement on email template that need to be triggered when a document is uploaded in a custom portal which was linked with development sandbox by "Account Document Manager" Object....
2 votes
1 answer
50 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 /> </...
  • 331
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 ...
  • 1,285
0 votes
1 answer
99 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 ...
  • 109
1 vote
0 answers
355 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 ...
0 votes
0 answers
167 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 ...
  • 1
1 vote
1 answer
242 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" ...
0 votes
0 answers
22 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:...
0 votes
0 answers
37 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 ...
  • 11
1 vote
1 answer
57 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 ...
  • 163
0 votes
0 answers
46 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-...
0 votes
1 answer
127 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 ...
  • 17
0 votes
0 answers
335 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 ...
0 votes
0 answers
107 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 ...
0 votes
1 answer
433 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&...
1 vote
1 answer
34 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 ...
  • 17
0 votes
1 answer
467 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 ...
1 vote
1 answer
576 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 ...
  • 295
1 vote
2 answers
405 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/ ...
  • 295
0 votes
1 answer
127 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
0 answers
25 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,380

1
2 3 4 5
23