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

On custom VF page of an apex component I have apex: outputPanel component I want to show Name field inside <td> [closed]

<apex: outputPanel rendered= "{!IF(RecordType == 'New',true,false)}"> <th>Name</th> </apex: outputPanel>
1
vote
0answers
26 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
12 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
17 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
33 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
24 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
17 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
18 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
45 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
39 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
17 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
26 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
39 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
20 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
19 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
19 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
39 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
14 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
119 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
88 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
20 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
33 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
21 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
21 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
25 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
21 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
37 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
87 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
15 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
49 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
20 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
57 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/...
0
votes
0answers
20 views

Show modal when field value is changed

I'm stuck in this for literally hours, trying to figure this out but I havent had a clue yet. I want to show a modal, pop-up or alert if a field value in the standard Opportuntiy record page is ...
0
votes
0answers
24 views

Display header column in all PDF pages using VF

I am trying to show the header column on all the pages, if I pass extra data, then the data table expands to the next page the header is missing, I need to show the header on all the page. First page: ...
0
votes
0answers
22 views

How to Add Textarea Dynamically in vf page with Reference to records in object?

How to Add Textarea Dynamically in vf page with Reference to records in object Scenario: textarea fields should be displayed in vf page with reference to the records saved in custom object. For ...
1
vote
1answer
211 views

Inline Visualforce page vs Canvas App vs Lightning app

What are the difference between Inline Visualforce page vs Canvas App vs Lightning app. I'm looking to build an app that needs to inject UI inside detail page for an object. Should work for both ...
0
votes
0answers
15 views

Visualforce component datatable duplicates rows

I have a batch class which sends out email alert first of every month. Batch class triggers the email alert using Messaging class which then uses Visualforce component to have the list of records in ...
0
votes
1answer
205 views

Validating the Max and Min Length of the input in VF Page

I need to validate few input fields in the VF Page, the validation is to make sure all these fields entered are 6 digits in length and cannot contain alphabets. Not all the fields are required, user ...
0
votes
1answer
368 views

Validating the input field in the VF Page

I am trying to Validate the user input in the VF Page. This custom field is a Text data type and the Maximum length is 6. In the VF Page I need to make sure this field entered is a numeric and cannot ...
0
votes
0answers
19 views

VF Page with the Multi select picklists

I am trying to use the multi select picklist field in my VF Page. The multi select picklist field has a default value, I was hoping when I use this field in the VF Page I should be able to see the ...
-1
votes
1answer
61 views

Invalid Id on visualforce

I'm trying to insert a record but it is displaying this error: Invalid id: Name of record . can anyone check it? Controller public class NightFlexList2Con { public string movieid{set; get;} public ...
0
votes
1answer
40 views

VF Page is not updating the record

I have a VF page to update couple of fields on the Opportunity record, it is a simple VF Page like below <apex:page standardController="Opportunity" extensions="Opportunity_UpdExt&...
0
votes
0answers
13 views

How to set Lightning Event in dynamic Lightning Component

I create a Lightning Aura Component with Lightning Event. Please see follow code. <aura:component > <aura:attribute access="global" name="flowName" type="String&...
0
votes
1answer
24 views

Data Mapped from controller is not visible in VF page

I have tried retrieving values of data from the controller and map them to the VF page. But, the mapped data is not being visible on the VF page, whereas in the debug of the controller it is visible. ...
0
votes
1answer
67 views

How to display recently created record link in visualforce Email Template without using an Apex Custom Controller?

I have objects with lookup relationship "A"(Parent) and "B"(Child). Email need to be sent to User whenever a New record "B" is added on "A" and Email body ...
0
votes
1answer
379 views

Mouse Hover custom helptext tooltip in a Visualforce page

I want a tool tip next to the Label 'Finance Sources'. If I hover the cursor on the label 'Finance Sources' the tool tip does not appear. However, if I hover the mouse above the label the tool tip ...
3
votes
1answer
76 views

Visualforce components disappeared after an action

I am looking into a strange Visualforce effect. Now the problem can be simplified using the following example. MyController: public class MyController { public String firstName {get; set;} ...

1
2 3 4 5
23