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

Opportunity products on an account level

I am trying to show a custom related list on the account object of all of the Products associated with closed won Opportunities within each customer accounts. The goal is to have a one stop shop, in ...
Paola Herebia-Gratton's user avatar
1 vote
1 answer
26 views

Escape HTML content in selectOptions

Need to Escape the html character from Selectlistoption without modifying backend logic We have 4 level apex repeats , I have added a repeat as part of this question <apex:repeat value="{!acc....
SFDC Learner's user avatar
  • 2,344
1 vote
1 answer
28 views

Accessing excel within visualforce page

I have created a static resource(Name = Excel_Macro_Report) where I uploaded excel macro file with cache control as public. Then I created visualforce page with the following Visualforce Markup: <...
bibar's user avatar
  • 13
0 votes
0 answers
17 views

Path on shipment object

I Want to Add a path on the shipment object, a standard object in the salesforce Automotive cloud. but the shipment object is not in the path setting so how can I add a path to the shipment object ...
sudeep patil's user avatar
0 votes
1 answer
29 views

Query in apex attribute of a component

Is it safe to put soql query as a string in apex attribute of a component? Or is it a stupid idea? For example <apex:component controller="somecontroller"><apex:attribute name = &...
Janek's user avatar
  • 1
0 votes
0 answers
50 views

VisualForce EmailTemplate With unrelated Custom object Data Needs to be sent as email

I have struck in a particular scenario where i need to showcase a data table of unrelated records in the email template. Initially i have created the Email Template. On click of a button in LWc im ...
pavan kumar's user avatar
0 votes
1 answer
34 views

How to call Visualforce Component (wallmart.vfc) inside aura component

I there any way that we can call the Visualforce component inside the Aura component? I tried the below code its not working, Can anyone help me on this? <!-- MyAuraComponent.cmp --> <aura:...
user3214361's user avatar
0 votes
0 answers
59 views

Salesforce CPQ - Quote Lines, Quote Line Groups, and MDQ - Visualforce Approval Email Template

Our team is looking to launch MDQ for our products in CPQ, however while this is handled seamlessly on the Quote Template end, I am struggling to make an Approval Email Template that will adequately ...
Chapin23's user avatar
0 votes
1 answer
34 views

Is it possible to reference a locally-created VF component in a VF email template from a managed package?

There is a Visualforce email template in a managed package that I would like to modify to include a locally-created Visualforce component. All aspects of the locally-created component - the component ...
Brig Larimer's user avatar
0 votes
0 answers
59 views

When I access the site URL where I host the VF page in different browser, The inputfields are not appearing. I can only see outputlabel. Why?

When I preview the vf page from developer console, I am able to see the fields but when I access the site URL where I host the VF page in different browser, The inputfields are not appearing and i am ...
sangeetha balasubramanian's user avatar
0 votes
0 answers
23 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
34 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
50 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
67 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....
Pixel's user avatar
  • 1
1 vote
1 answer
122 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
233 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
276 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
  • 307
0 votes
1 answer
71 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
  • 307
0 votes
0 answers
28 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
35 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
  • 117
0 votes
0 answers
176 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
41 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
499 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
110 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
142 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
42 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
60 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
59 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
123 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
346 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
113 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
104 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
375 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
48 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
138 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
534 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
191 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
131 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
977 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
1 vote
1 answer
211 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
386 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
22 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
113 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
84 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
  • 479
0 votes
2 answers
48 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,317
0 votes
1 answer
271 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
  • 129
1 vote
0 answers
771 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
657 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
114 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
84 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

1
2 3 4 5
24