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

Customize the "Self Register" component in Experience Cloud

I want to modify the 'Self Register' component located on the 'Register' page in Experience Cloud. The objective is to add more fields to the component and change its Apex code. According to the SF ...
Rose Mirzaei's user avatar
0 votes
0 answers
18 views

Multiple components in single parent page in salesforce

I have created a salesforce component XYZ & used 2 component's in a single page. There is an "Assign" button in the component which saves data. But when I click on the Assign button of ...
Sushil Jadhav's user avatar
1 vote
1 answer
28 views

How to call interface propoerties in VisualForce Component

I encounter an issue where I use one of my inner classes in an apex:attribute of a VisualForce Component. Based on this thread: Reference inner class in Visualforce component I refactored my code to ...
Azumi's user avatar
  • 19
0 votes
0 answers
33 views

currentpage.getContentAsPDF() renders hidden tables

I have created a visualforce page (pop up window) showing a confirmation letter containing student information and booking details. The page has a table in the header (or simply at the top) that ...
user2910531's user avatar
-1 votes
1 answer
48 views

Unknown property 'VisualforceArrayList.Quote__r' [closed]

I am trying to run this code, but I am getting that error Apex Class public List<sbaa__Approval__c> getApprovalList(){ List<sbaa__Approval__c> listOfApproval = [SELECT ID, Quote__r....
Abhishek Srinivasan US's user avatar
1 vote
1 answer
80 views

Failed to get Browser name through Apex class

I am executing following code in apex class which is a controller for one of my visualforce pages. String userAgent = ApexPages.currentPage().getHeaders().get('User-Agent'); System.debug('userAgent:'+...
mayur shastri's user avatar
0 votes
0 answers
82 views

How do I open a subtab of a certain record within the main tab of another record?

I am trying to open up a Call_Log__c object record as a sub-tab under an Account main tab within my service console upon completion of a flow. This is what I have in the visual force page I'm working ...
user14501247's user avatar
0 votes
1 answer
140 views

conditionally Add watermark on all pages of visualforce page document

I have a visualforce pdf...the requirement is to put "Draft" watermark on all pages of vf document if quote status is either pending or awaiting approval. I tried to implement this by adding ...
Return0's user avatar
  • 297
0 votes
1 answer
51 views

Does style of vf page apply to called vf component

if a vf page has the style defined at top of page <style> @page { /* size: 8.5in 11in; */ size: A4 landscape; margin-...
Return0's user avatar
  • 297
0 votes
0 answers
24 views

How to Iterate through MAP and send the Data to VFC Component to Send the Email to Case Owner

I have to send mail to Case Owner which is a queue with all the cases attach to it, in the email body. I have created Email Template and a VFC component. Code snippet is below: <messaging:...
Anita Mehta's user avatar
0 votes
0 answers
34 views

Weird Behavior on cloning object in visualforce

I'm having some weird issue where I'm trying to make a deep copy of an object on a button click, but when I do it rotates between a successful clone, and a copy of the object without any of the nested ...
Kevin Yao's user avatar
  • 107
0 votes
0 answers
39 views

How I can Make Dependent Picklist Based on the RecordType In visuaforce Page

I have two PickList Fields that is order_type (Controlling Field) and Order_subtype (Dependent Field) and want to show an Order_subtype value based on the record type as well as an order_type field ...
Shruti Saran's user avatar
0 votes
0 answers
96 views

Step-by-step of Adopt the Salesforce ICU Locale Formats

Is it any automatization existed (from Salesforce?), that we may run in our ORGs to check all that: format(), parse(), @locale, import * from @salesforce/i18n/* to cover the whole CODE (Apex, LWC, ...
Vitaly Makarkin's user avatar
0 votes
0 answers
39 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=...
Lavanya's user avatar
0 votes
0 answers
141 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=&...
Manoj Kanojiya's user avatar
0 votes
1 answer
30 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 ...
Sagar's user avatar
  • 3
0 votes
0 answers
46 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="...
Deena Vicky's user avatar
0 votes
0 answers
36 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 ...
Deena Vicky's user avatar
0 votes
0 answers
422 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/...
Noha's user avatar
  • 13
0 votes
1 answer
81 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 ...
Sanjana's user avatar
-1 votes
2 answers
127 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 ...
Sanjana's user avatar
0 votes
1 answer
37 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; ...
Anmol Khanna's user avatar
1 vote
0 answers
55 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 ...
Andrea P.'s user avatar
  • 143
0 votes
1 answer
42 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. ...
VISHNU SANTHOSH's user avatar
1 vote
2 answers
99 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 ...
acastro's user avatar
  • 46
0 votes
1 answer
328 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 ...
Tara's user avatar
  • 1
0 votes
1 answer
93 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,...
joacoiudica's user avatar
0 votes
0 answers
95 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:...
Charles dB's user avatar
0 votes
1 answer
283 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 = ...
asidrey's user avatar
  • 79
0 votes
2 answers
42 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 ...
syed sameer's user avatar
0 votes
0 answers
78 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 ...
Harsh Shukla's user avatar
0 votes
1 answer
443 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 ...
pavan kumar's user avatar
1 vote
2 answers
179 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="...
Ali Baba's user avatar
2 votes
1 answer
124 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"> <...
Ali Baba's user avatar
0 votes
1 answer
689 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:...
Ali Baba's user avatar
0 votes
1 answer
176 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.
Vasu Gupta's user avatar
0 votes
1 answer
311 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> </...
SAK's user avatar
  • 15
0 votes
1 answer
20 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 = ...
Knight of the Vale's user avatar
0 votes
1 answer
98 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) ...
Krishnamurthy's user avatar
2 votes
1 answer
76 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 /> </...
Will's user avatar
  • 449
0 votes
2 answers
47 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 ...
David Mycka's user avatar
  • 1,297
0 votes
1 answer
208 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 ...
Alexis's user avatar
  • 109
1 vote
0 answers
691 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 ...
Kunal Gurjar's user avatar
1 vote
1 answer
533 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" ...
cpaesano's user avatar
1 vote
1 answer
97 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 ...
Chandu's user avatar
  • 163
0 votes
0 answers
68 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-...
Aadhit Shanmugam's user avatar
0 votes
1 answer
664 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 ...
Claire's user avatar
  • 19
0 votes
0 answers
443 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 ...
Deepanshu Rajta's user avatar
0 votes
1 answer
594 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&...
Austin Kelly's user avatar
1 vote
1 answer
44 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 ...
Claire's user avatar
  • 19

1
2 3 4 5
24