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 and , that can be used to develop Visualforce pages. In addition, you can build your own custom ...

learn more… | top users | synonyms (1)

-2
votes
0answers
13 views

What are tha AJAX Components in Salesforce? [on hold]

Can You Tell me briefly about AJAX Components in Salesforce. Thanks in Advance, Manoj
1
vote
1answer
13 views

Is there a way to map fields for existing PDF document using APEX/VisualForce with the relative data from Custom/Standard objects?

Is there a way to map fields of an existing PDF document using APEX/VisualForce with the relative data from Custom/Standard objects? Here is the situation - There is an existing PDF document and we ...
0
votes
1answer
19 views

apex:actionsupport rerender issue with two required fields

I need to have two required fields as lookup input field (one for account and one for contact) in a single pageblocksection section. On selection of each lookup, a particular section is getting ...
0
votes
2answers
28 views

News ticker Like component for home page?

I am trying to create a new home page component that will display a scrolling message on the home page. The use case is to provide end users with tips and hints around general usage. This used to be ...
0
votes
1answer
24 views

How to download to particular employee details using custom object to excel sheet using visualforce page

I am trying like this but its not getting exact output. Visualforce page: <apex:page controller="MyControlleremployee" tabStyle="employee__c"> <apex:form > <apex:pageBlock ...
0
votes
1answer
24 views

Problem with sending an email that uses a custom component/controller

I've put together a Visualforce email template for cases and I'm running into an issue with it that only occurs when the case is initially created. The component pulls a list of related records from a ...
1
vote
1answer
35 views

Get id from Current Page Url issue

I have scenario redirecting from one visualforce page to another visualforce page using apex code and have also set some parameters for second visualforce page. I tried to retrive the id using ...
1
vote
0answers
41 views

Pass VF component attribute to component extension

Following is my code: VF PAGE: <apex:page standardController="account" extensions="ForecastHierarchyEditExtension" tabStyle="Account" sidebar="false" standardStylesheets="false"> ...
3
votes
1answer
99 views

Unable to access component attributes in specifc getter methods

I am setting a string as an attribute someString in a custom component tabComponent from the mainPage. I know that we cannot access the attribute in the constructor of the VF component controller, but ...
0
votes
0answers
14 views

RTF field with special characters

I have two RTF fields, 1 is Description , 2nd is Temporarly Description I have a workflow which is updating Values of Temporarly Description with Description. Problem: If Description contains Special ...
0
votes
0answers
34 views

Multiselect picklist's Selected Values are not getting reset on Instantiate Object

I have 2 vf pages, On first page the values which has been selected by user need to be remained in second vf page. On second page values of two fields are disable user can't make selection of it. ...
0
votes
1answer
65 views

Return SOQL for current record on Visualforce Email

I'm going to have to write a custom controller for a Visualforce email to pull back details for the contract where my "send email" button will be hosted. My relatedtotype is the Account object (has to ...
7
votes
1answer
40 views

Create a visual force Component with tags that require form to be used in page within form tags [duplicate]

I have run into a dilemma where I have a bunch of VF page markup and code that is to be used on Two different VF pages. I would like to put all of this code, javascript, etc into a component so it is ...
4
votes
1answer
52 views

Handle Multiple <apex:form> elements in one Visualforce page

I have a visualforce page with an apex:component in it. (This component is for headers, used in various other places). <apex:page title="" ... > <apex:form> <c: HeaderV2 /> ...
1
vote
1answer
21 views

Using component to list rows from related object

I have created a visualforce email template and I would like to display rows from a related object ORC__c which belongs to the Account object. The email template would be selected like so Contacts > ...
0
votes
1answer
106 views

Insert records from a CSV file to saleforce object- Using Visualforce and apex

For example: I have cvs file with account object records . if i uploaded cvs file (in vf page need to create attachment button which takes cvs file and need to create uploadFile button which stores ...
1
vote
1answer
31 views

Listing related data in custom email template via component

I am creating an email template which will be sent to individual contacts, the template needs to list rows from a related object. I have created the relevant component and class which I believe would ...
0
votes
2answers
32 views

Dynamic Visualforce Components with commandButtons tied to records

I'm creating a VisualForce page that is going to load records from a web service using JSON. I have a requirement to add a button next to each record I pull. I don't see a direct way to do this with ...
0
votes
0answers
42 views

jquery accordion with salesforce not working properly

<apex:page > <script type='text/javascript' src='http://code.jquery.com/jquery-1.7.1.js'></script> <style type='text/css'> .accordion{margin:50px}.accordion dd ...
0
votes
3answers
43 views

Dynamic Hide and Show

I have the following piece of code where I want to dynamically hide or show div tag having a component on click of a button.. How can we achieve this? <apex:page sidebar="false" title="Article ...
2
votes
2answers
53 views

apex:selectList with free-form Other field

What is the best way to implement an apex:selectList add-on or equivalent, so that when the user selects "Other" a free-form text field appears to allow the user to enter any value (s)he wants?
3
votes
1answer
22 views

Custom attribute for Visualforce component that accepts SObject fields?

Is it possible to create a custom Visualforce component that accepts an SObject field as an attribute? Basically, I want to replicate what's done with something like ... <apex:inputText ...
0
votes
1answer
61 views

Visual force table display

I have created table using tag , In that table Column Header values are coming dynamically from Apex class as List. while displaying it on vf page I am using tag to populate the values of Column ...
0
votes
0answers
34 views

Display Converted Currency on Visualforce page inDeveloper Edition

i have a price(currency data type) and currency(pick list data type i.e(INR,USD,GBP)) custom fields in account object.when ever i enter a value in price(INR 70) field it should display the ...
0
votes
0answers
15 views

Set sObject in component and update in master page

I have a problem, struggling from few hours and feeling lost right now. I have a custom component (AddressComponent.component) with it's own controller (AddressComponentController.cls). The component ...
1
vote
0answers
29 views

Component does not allow to save the object as it reset to old value?

The page shows the fields of the SObject with their expected values. I can modify these values on the page but when I press the Save button the SObject saved doesn't have any of the changes and I ...
-2
votes
2answers
29 views

I want to edit single record from multiple records [closed]

Hi this is mouli and i am new for visualforce, i want to edit a single record from multiple records available in a visualforce page i tryed but when click on edit button it is enabling all the ...
1
vote
1answer
115 views

Display Radio buttons group in visualforce page

I have two objects Question__c and Answer__c. For every question record there will be 4 answer records. I need to have 4 answers as radio buttons for every question. How to display the answers as ...
0
votes
0answers
35 views

VF : Remove gap between fields

The above picture contains my VF component. I would like to remove the gap between "Conversion Page Destination URL" & the two input fields (picklist , text area) so that they are in the same ...
2
votes
2answers
52 views

Hide Visualforce component based on field in account layout

On my account layout, one of the sections has a visualforce component in there that will only appear if another field on the account layout has a value in it. When there is no value it displays a HTTP ...
4
votes
1answer
53 views

Deleting a managed visualforce page

I'm trying to delete a visualforce page that is contained in a managed package. I have opened a case with the Salesforce support team and they enabled deletion of components that are contained in a ...
4
votes
1answer
67 views

Assigning VF component attribute to a List controller class variable

I have a VF page using a standard controller, a component, and a custom controller for the component. I am trying to pass a list of sObjects from the standard controller to the component's custom ...
0
votes
0answers
48 views

Can Visualforce components run in the Service Console?

I have a Visualforce page for Cases that contains Visualforce components that retrieve retrieve data/perform calculations that are useful during Case processing. When I include the Visualforce page ...
3
votes
0answers
26 views

How to add a component visible on all pages and to send events from another component placed in column

I'm extremely new to Salesforce development and recently have spend hours reading different docs. It's not an excuse, it's just that feel to correct me whenever I use incorrect terminology or make ...
4
votes
2answers
269 views

Rendering a Visualforce page as PDF and force page breaks

I have to skip the content of vf page (renderAs=pdf) to the next page whenever page body found <<next page>>. Below is my requirement: - The first(left) page should be split in two pages ...
1
vote
0answers
62 views

inlineEdit Cancel button suppose to work this way?

So I am try this sample directly from the developer guide, and if you were do an inline edit of the last name field, for example, and want to revert back to the original data by hitting cancel it ...
0
votes
0answers
29 views

How can I pass a variable from one component to another component via a page?

I have two components and one page, I have to pass a variable from one component to another component how to do this in salesforce. I created components CPSearchComponent, CPSearchResultsComponent ...
0
votes
1answer
72 views

Can't create attribute with type 'object' in custom VF component

I have a problem regarding tying an attribute in a visualforce component to a Controller. THe thing is, i needed some new functionality so i created new controller PaginatorController2. Ther, i have a ...
3
votes
0answers
89 views

Sorting the Opportunity Line Item Products into Categories?

I am having an Invoice Layout and adding the Products as follows using the Visual Force page: Quantity, Product Code, Product Description, Unit Price ,Net Amount, VAT 1, S5KGC, 5Kg CO2 ...
1
vote
1answer
74 views

Problem with apex:inlineEditSupport showOnEdit/hideOnEdit where multiple sets of buttons

I have an apex:component that renders several buttons and a table where one of the columns of the table uses apex:inlineEditSupport to allow inline editing. I am also using the feature that allows the ...
0
votes
0answers
19 views

Lookup editable only in edit mode [duplicate]

I created a custom lookup field, but when I add the visualforce page (the lookup) to my object page, he stays editable in the details page. I want he stays read only at details page and editable on ...
1
vote
0answers
48 views

Show Chatter feeds related to a Knowledge Article on Salesforce Community

I'm trying to show the chatter feeds related to the knowledge article using chatter:feed component on visualforce page. I'm able to show the feeds successfully to all the internal users but it gives ...
2
votes
0answers
18 views

Dependent picklists in components conflicting with each other

Imagine an object called Location that has a Country, State, and City dependent picklists. You select a Country then the States are populated, you select a state then the Cities are populated. Now ...
0
votes
1answer
116 views

Displaying custom field description on VF page

I have a requirement where the names of the custom fields far exceed the 40 characters limit. So instead I thought I would put a keyword in the field name and the whole name in the description of the ...
1
vote
1answer
27 views

How to avoid red line through https:// OR display external webpage as landing page in customer community

We are building a customer community and I'm having trouble with the home page. Currently I'm using a VisualForce page with an iframe to display a welcome page that our marketing team built in ...
0
votes
0answers
44 views

Refreshing whole pageblock section

I have one problem, when i clicked hide section button , it's hiding. whenever i clicked command link (Add chiller) ..............the pageblock section also refreshed its showing the table. its ...
1
vote
1answer
106 views

Use apex:relatedlist in visual force component

This is my VF page "TestPage": <apex:page standardController="Account"> <c:TestComponent recordId="{!account}" /> </apex:page> Visual Force component "Test Component": ...
1
vote
1answer
121 views

Reference child class in Visualforce component

I'm trying to build a VF component that references an attribute that is an instance of a child class. I have a top level class A and inner class B and C which extend class A and i am trying to pass ...
0
votes
1answer
40 views

Currency field to words

I got this apex code for converting numbers to word but want to display this in VF using standard controller and extension. public class NumberToWord1 { public ...
2
votes
1answer
461 views

How does one test Visualforce components with custom controllers

I have created a custom Visualforce component. It is backed by a custom controller. I am struggling to write unit tests for it. The limited VisualForce documentation indicates that to test it I ...