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)

0
votes
0answers
17 views

How can I hide fields in detailpage when saved in a Visualforce page?

When i save the record the % fields also showing in detail page. below is the page <apex:page standardController="opportunity"> <apex:includeScript value="{!$Resource.jquery}"/> ...
1
vote
2answers
58 views

How to display List<List<String>> in Visual force page?

In controler i will get the data as "List < List < String>>" , how can i display it on Visual force page? And that "List < List < String>>" is populated based on user input(Checkbox ...
1
vote
1answer
32 views

How to use html textarea compnent in visualforce page?

I am having a field, Final_Step__c which is of data type Text Area. I am showing it in VF page: but, due to maximum length issue of <apex:textarea> i wanted to use html <textarea> ...
1
vote
1answer
65 views

How to Create Custom Sidebar in Visual force page?

Is it possible to create custom sidebar in visual force page? I want to have a sidebar similar to the one we see in Setup page. Like this!. Is there a way to do this?
0
votes
0answers
20 views

Subscript is invalid because list is empty

i am showing up with following in the visual force error I am checking the list is null or not but still i am showing up the with error "Subscript is invalid because list is empty" below is my code ...
4
votes
1answer
50 views

reports embedded in visualforce not showing

I have a few reports embedded in visualforce page using iFrame. Due to this new release of Spring '14, iFrame has stopped working and now these visualforce pages show blank screens. Can anyone help me ...
0
votes
0answers
14 views

Apex component like HTML component <legend>

Does any Apex component exist like the <legend>My legend here : </legend> tag in HTML? I don't find any component like this on the Visual Force API.
1
vote
1answer
33 views

How to add multiple attachments to an email template?

I'm creating a UI that feeds into an email template via visualforce. One of the features I want to add is the user should be able to click checkboxes and add attachments to an email template. When ...
8
votes
1answer
67 views

Passing a map to a custom component

I need to pass a set of key/value pairs to a custom component. The specification of the key/values needs to be done in an apex:page definition, so something like this (IMPORTANT: The following code ...
1
vote
1answer
28 views

Is there a standard visualforce component for a data table with checkboxes?

When you add new opportunity products, the first page has the table with the list of products and the checkboxes so you can select one or more. Is there a standard visualforce component for this or ...
7
votes
1answer
129 views

FinancialForce component ? What are they ? how do they work?

I recently came across a custom financial force component <ffirule:IntegrationRule engine="{!engine}"/> which is very similar to custom visualforce components but don't they usually start with ...
3
votes
3answers
46 views

Make visualforce fields required without setting them from the object page

I have an <apex:form> which has search action and upsert action, the thing is that I want the fields inside this form to be required just when I click on insert button. I tried to make these ...
2
votes
2answers
103 views

How do I pass a parameter from component to a Visualforce page?

Can I pass a email value from a visualforce component to a Visualforce page? I have used components for reusing Company's logo and few images... <apex:component> <apex:image ...
2
votes
2answers
40 views

how to avoid picking old date in datetime picker in inline vfpage

I have a date time picker as a calendar. is there anyway that i avoid backdating in the calendar ? It should be only pick today and future dates. Thank you all.
3
votes
1answer
67 views

How to create a Show/Hide Button on Contact Related List in Salesforce

-Background- Our contact related lists on the account page layout displays records with one of the following two statuses: "Active" and "Terminated". Users are being overwhelmed with the number of ...
1
vote
1answer
40 views

Which Apex classes in org are Salesforce Communities-related?

How to find out which Apex classes, Visualforce Components and resources within the organization are Salesforce.com Communities-related? In other words, how to find out which files in the project are ...
0
votes
1answer
71 views

apex:dynamiccomponent returning a value

I am tying to achieve pagination using command buttons as dynamic components. but i want to return the value of the button number to my controller so it can return the same page. Can anyone please ...
0
votes
1answer
42 views

In Visualforce, make a decision based on the state of a component

In the following scenario, how can I work out if something has happened because the user interacted with <c:myComponent> so that in my page I can decide whether to render Hello World!? ...
1
vote
3answers
129 views

Set value of apex:attribute from javascript

I have a custom component(named myComponent) which has an attribute value. I want to change the value of this attribute using javascript. How to do that ? <apex:component > ...
2
votes
1answer
22 views

Can I use the HTML in a LongText field in an email?

I have a LongText field that I'm about to change to a rich text to take advantage of some formatting, but when I got to switch it Salesforce asks if there's any HTML in it that I'm using in ...
2
votes
1answer
122 views

Custom component inside apex:repeat doesnt update controller value

I've been splitting this problem up into its core and created the following - A custom component and its controller, a page and its controller only using User object so it should be easy to get it up ...
2
votes
1answer
84 views

Salesforce1 Lisview

How can i get a lisview in the Salesforce1 App like this? Maybe, i think the new button is a kind of flexipage tag?
2
votes
0answers
56 views

Passing SelectOption[] to MultiselectPicklist Custom Component results in Cannot convert the value of '{!leftOptions}' to the expected type

I have a Map in custom controller as follows Map<String, SelectOption[]> mapSelectOption; and populate this Map as follows in constructor of custom controller Schema.DescribeSobjectResult R ...
2
votes
1answer
134 views

Using PageBlockTable inside other PageBlockTable

I am trying to build a PageBlockTable inside another PageBlockTable, so I can add the master data in the master table and each row will has a detailed table. So I am thinking of this ...
0
votes
1answer
78 views

subtabs are not opening for links in a iframe inside a vf page

I am not able to open subtabs for the links which are on the iframe embedded inside a vf page in sales console , getEnclosingprimarytabId() not able to get the primary tab id .
1
vote
1answer
51 views

include page vs visualforce components in using tabs

I have a page with many tabs, and each tab have contents with fields, tables, etc. I want to add each tab contents in a separated page Or a VF component because of the huge number of code lines. But I ...
0
votes
1answer
57 views

apex:messages vs required=true

I have a requirement where at some places in the visual force page, there should be required fields so I have put this : <apex:inputfield id="selectId" value="{!var.field1__c}" required="true" ...
0
votes
1answer
376 views

Onchange from visualforce unable to get the value from Javascript

I have VF page as below <apex:page standardController="Stack__c" extensions="Controller" tabStyle="Account"> <script> function foo(data){ alert("Call came ");//this is displyed ...
1
vote
0answers
134 views

How to apply pagination and sorting with custom list views on visualforce page

Pagination and sorting is not working when creating custom list view on visualforce page(using selectlist)
3
votes
2answers
254 views

Error for Dispatch Page on Salesforce1

I have a dispatch page on account.When i am crearting a "new record" meaning new button the dispatch page redirects to a different page depending on the record type selected. It is working fine on the ...
2
votes
1answer
111 views

Pass List of sObject to VF email template / Best way to get just inserted records

Looking for assistance to my approach here. What I'm trying to do is set up a notification such that when a user clicks a button to insert records, it will include data from the newly inserted records ...
1
vote
1answer
141 views

Create one table of multiple object types

I am looking to create a table, for instance pageBlockTable, with entries from multiple object types. The various objects share some fields, and also have unique fields. The table should display a set ...
1
vote
1answer
64 views

How to maintain a view state record across custom controller

Having all sorts of trouble with what should be simple - I hope! Assume you have a simple VF page to use as a lead registration form. You instantiate a new lead record and can bind input fields via ...
1
vote
1answer
107 views

VF Displayed on Objects when the Object creating and Updating [duplicate]

This is my woking Code VF Page: <apex:page standardController="Account" extensions="NewAndExistingController" id="demoId" > <apex:form > ...
1
vote
1answer
65 views

Prevent redirection of apex code executed from a custom button on a specific record

I have a custom database [object] called ‘Trainee__c’ And added a custom button that shows on each record, I followed this website: Create custom Button using Apex code Very nicely explained ...
2
votes
2answers
757 views

get data when click on row in pageBlockTable

I have a pop-up display a table with some columns (Name, ID) of Accounts for example, I want to display additional information of the selected account when I click on specific row. I used something ...
2
votes
2answers
69 views

Custom Visualforce Component Help

i want to build a custom visualforce component as shown in following image. I am currently thinking of a custom MultiPickList using div and ul. But i will have to write a lot of javascript for it. ...
0
votes
1answer
2k views

Unable to get the selected pick list value in the controller

**VF Page:** <apex:page standardController="Order__c" extensions="MyOrderPadController" > <apex:detail /> <apex:form > <apex:pageBlock > ...
0
votes
1answer
328 views

VF page fields after click the save button read only(view)

I have one VF page that contains custom fields: VF Page : DEMO <apex:page standardController="Order__c" extensions="MyOrderPadController" > <apex:detail /> ...
3
votes
2answers
110 views

Custom component within apex tab not binding to sObject

I have a bunch of custom components inside an apex:tabPanel. Each component is tasked with creating or editing an sObject passed to the comp through a wrapper class from my main page controller. My ...
0
votes
1answer
370 views

How to call the controller to VF page with parameter

How to call the controller to VF page with parameter?I have two Visual force pages, and two controllers VF Page:DEMO <apex:pageBlock > ...
6
votes
1answer
316 views

Reusable components in Managed package (Problem with Namespace)

Lately I have been developing set of Visualforce components "VisualStrap" that can be used to implement Bootstrap inside VF pages easily. So to make the upgrade process easy I made a managed package ...
8
votes
1answer
221 views

How do I go about updating Pat Patterson's Multiselect Picklist Visualforce Component for API > 26?

Pat Patterson's Multiselect Picklist component is exactly what I need for a page I am working on, and works great with API version 26. However, when I try to use it with a more current API version ...
3
votes
2answers
530 views

Standard DateTime Picker in Visualforce

Does anyone know whether there is a standard Time picker or datetime picker available in Visualforce framework? Visualforce Date picker is a powerful component that can be easily used with . But when ...
1
vote
1answer
148 views

How to create and attach PDF upon approval through standard email approval process

I have a scenario PDF needs to be created and attached the same to custom object upon user approval. Users will approve through email approval process. Challenges: Create a PDF using visualforce ...
1
vote
3answers
748 views

Insert Attachment into Visualforce Email Template

this question: says that it is "hard" to put a component inside a visualforce email template because ' needs to be a child of component.'. Yet, is there a way to make this work? We also need to ...
1
vote
2answers
188 views

Overriding standard “Submit” button to lock(uneditable) a record

I am looking for the correct syntax for a scenario where by once user clicks submit , the record would become locked i.e would not longer be editable. So, I have created a new custom button named ...
3
votes
1answer
96 views

I am creating a Custom button with add functionality

In a visualforce page with two different components a & b, i want to create an add button which adds fields from component A and add it to the fields on component B while creating a record on ...
9
votes
4answers
949 views

render Blob image in PDF using Visualforce

Hi below is a snippet of a code where i am rerendering as pdf and have a blob image stored in a text field. When i display the blob image in VF page it displays fine, but when i display same image ...
2
votes
1answer
236 views

reRender attribute within component

I have a problem with the rerender attribute not working when i try to use it within a visualforce component. Here is my code: My component: <apex:component controller="zTestController" ...