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
2answers
5 views

Conditional Apex in HTML emails

What's wrong with this Apex/Visualforce code that it returns nothing in my HTML email template? I've tried everything. Controller: public class EmailController { public Id leadId { get; set; } ...
0
votes
1answer
15 views

Unable to set focus on <apex:inputText> inside an ouput panel of visualforce page

I am quite new to Visualforce and Apex. I am trying to set focus on the apex inputText field, placed inside an ouputpanel, which will be popped up based on an action function. I tried setting focus ...
3
votes
2answers
28 views

Text file download in Visualforce page

I have a download button in my visualforce page, on clicking which a text file(.txt format) has to be downloaded. This text file will be created dynamically with the data stored in a Text field of a ...
0
votes
1answer
28 views

Image selection on VF Page

I have a 4 step wizard displaying images on visualforce page. I have created a text rich field on product with family as "t1", "t2", "t3", "t4" where I store images. I have to display images to my ...
2
votes
1answer
33 views

Get the specified child relationship Name from Parent

I have a VF component where I am trying to get related list(child) of any record( say Account, depends on the value I give in my VF Page). I have two attributes in my VF component , objectvar- which ...
0
votes
2answers
34 views

How to customize related list order in Custom VF page? [on hold]

I have written custom VF page on CASE object to show custom object as related list to the CASE. I could able to do that but I need to show at the top of all other CASE's standard related list. Im only ...
0
votes
1answer
31 views

querying related child object from parent in VF componenet

I am trying to build a reusable VF component which can return all the child of an parent object. I just assign the parent object in my VF page and rest is taken care by the VF component to display the ...
3
votes
2answers
77 views

AssignTo variable in attribute

I have a visualforce component as below: <apex:component controller="RecordDisplayController"> <apex:attribute name="objectName" description="An Sobject" type="Sobject" required="false" ...
0
votes
1answer
16 views

How use apex attribute of type Sobject

I am building a visualforce component where I have: <apex:attribute name="objectName" description="An Sobject" type="Sobject" required="false"/> <apex:attribute name="ChildName" ...
1
vote
1answer
7 views

Custom Component Not working as expected

I am using an example of custom component from - https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_comp_cust_elements_attributes.htm Here is my custom Component: ...
0
votes
0answers
15 views

View state in Visualforce components

I am developing a VF page which will have two components. These two components will be placed multiple times on the same page with different input parameters. I am not sure how much view state will ...
2
votes
1answer
29 views

Getting a list of custom Visualforce components

I am trying to write a class that will list all custom Visualforce components in an .org on a page. I see that my custom components are included in the component reference at ...
0
votes
0answers
11 views

VF Component attributes assignment order issue

When passing parameter to VF component, the common issue is that it's not accessible from the controller's constructor, so as the workaround one can fire constructor-like method when the property is ...
0
votes
0answers
19 views

Building a custom page for contract

I have a requirement where I would like to create a custom button on the Contract object. My contract object has currently 50 fields in it. I would like create a custom functionlity where I have a ...
0
votes
0answers
28 views

If used inside a VF page, what is the difference between canvas and iFrame?

I am in a visualforce page. Based on what I know about canvas, all that I can do using a canvas can be done using an iFrame. What advantage does canvas give?
0
votes
2answers
22 views

Save&New functionality

in the below controller class save button functionality working,but i need to write save&New (SV)button functionality..please suggest me the approach to complete this functionality. public ...
1
vote
2answers
32 views

Conditionally Render Input Fields from Component - Visualforce

I am trying to figure out how to render a Visualforce component containing inputfields conditionally, depending on a stage field outside of the visualforce page. I would like to render a different ...
3
votes
2answers
36 views

displaying the vf page details as pdf

I am trying to coverting vf page as pdf format,for that am usinf contentType="application/pdf" <apex:page standardController="Opportunity" extensions="PDFcontroller" ...
6
votes
1answer
68 views

Unexpected Visualforce Order of Execution with component attributes on Get Request

I've hacked this small example of the unexpected order based on Order of Execution for Visualforce Page Get Requests. From the linked docs (my empahsis): The constructor methods on the ...
1
vote
1answer
17 views

Error: Unknown property 'PAModel .saveAllRelated'

I have the following piece of code in a component <apex:attribute name="Model" description="" type="PAModel" required="true" /> <div> <input type="button" style="display: block; ...
-3
votes
2answers
56 views

display opportunity products in a table

i created custom button on opportunity object which will redirect user to a VF page which will populate some opportunity fields and a table showing related opportunity product details ...
0
votes
0answers
16 views

ability to override forecast of revenue at the Opportunity Type

Managers can make forecast adjustment on the rollup of the opprtunities but now we need the ability to override forecast of revenue at the Opportunity Type and/or Product Family level also. What can ...
4
votes
1answer
38 views

How to redirect to PageReference from constructor

I need to prevent user from accessing standard community pages like /login and /sitelogin, because I have custom branded pages. In Salesforce SiteLogin.component there is no option for action (method ...
1
vote
1answer
38 views

how to delete the multiple record with checkbox

Here user should be able to select multiple contacts by checking the checkboxes and on clicking delete contact button, all the selected contacts should be deleted. VisualForce Page: ...
0
votes
1answer
25 views

How to Remove chatter header?

How can i remove chatter header (in black). This is a iframe.
-1
votes
0answers
24 views

Compile Error: only aggregate expressions use field aliasing

my task is"When user selects any stage and clicks on filter button, the below table should get refreshed to populate opportunities and having stage equal to stage selected" am getting this error ...
1
vote
0answers
19 views

Dynamically assign attribute value to custom vf component

I have a custom vf component that takes in account ID as a parameter. The vf component takes in the ID of the account and displays all the contacts under it. I have a pageblocktable that iterates over ...
0
votes
2answers
44 views

How to get the Value from column in below shown Visualforce Pageblock Table to apex method?

i want to take the value in Unit column and pass it to a variable in apex method as parameter. below is the Vf page code and apex method` <apex:pageblockTable value="{!Cond}" var="a" ...
0
votes
2answers
44 views

how to count the number of records selected through a checkbox

i want a vf page that has the account records along with a checkbox i want a counter field on VF page that shows the no. of records selected
1
vote
0answers
27 views

how to add checkbox for selecting a account record on VF page [closed]

how to create a vf page that shows the account records along with a checkbox to select a particular record also a counter value that shows the no. of records that has been selected through checkbox
0
votes
1answer
24 views

VF page does not display outputfield

I have this below VF page where I am trying to display the contact's name: <apex:page standardController="Account" > <apex:pageBlock title="Account's contact"> <apex:pageblocktable ...
2
votes
2answers
40 views

Intercept New Case Button with Visualforce - Won't recognize field in IF statement

I am trying to create a Visualforce page that intercepts the "New Case" button on the account when billing status = cancelled and returns an error that a case can not be created. If billing status ...
1
vote
0answers
16 views

Lookup value is not populating at first place in the picklist field? [closed]

I have a picklist field named account on the Lead object which populating account value from Account through "Search"(lookup) button from lead. But the value is coming as the first value in the ...
0
votes
2answers
34 views

Migrate from dev org to partner editon [closed]

How to migrate the triggers and classes and components created in developer edition to the partner org so we can make it into to package. The objective is to make it into a unmanaged package..please ...
0
votes
0answers
41 views

Call javascript from visualforce page to visualforce component

Visualforce component : <apex:component controller="AutoCompleteV2_Con" selfClosing="true"> <apex:attribute name="SObject" description="SOQL Object to query" type="String" ...
2
votes
1answer
157 views

How can I change the logo on a public site?

I spend a fair amount of time trying to update the logo for my public site. However, I was trying to edit the sitetemplate with no avail and the header.svc Do I put this in Static resources or ...
3
votes
0answers
34 views

How do I create a dependent inner component?

I know standard Salesforce has component dependencies on certain components; I want to recreate that functionality. For example if I attempt to use <apex:commandButton> outside of a ...
1
vote
1answer
35 views

Apex includescript is disabling tabs in Visualforce

I have this java script. The purpose is to open a NEW tab on any outputlink field. The script works but it disables my other tabs. When I remove my Includescript the tabs work but any outputfield ...
0
votes
1answer
30 views

JavaScript remoting reloading page

I'm trying to use JavaScript remoting and everytime I hit enter page refreshes. How do I stop it? Below code throws alert "enter" and reloads immediately even before I acknowledge alert. Please help ...
1
vote
2answers
40 views

Populating Related List on Contacts Page using apex

I want to display all the Accounts that have same contacts in them. Suppose Account 'A' has 5 contacts associated to it lets say c1,c2,c3,c4 and c5. Now on contact page i want to see a related list ...
1
vote
0answers
53 views

Visualforce: ReRender <apex:repeat> $Component passed through controller

I have a typical form with <apex:repeat> for some fields. The <apex:inputText> elements have an onChange attribute that references a script that then calls an <apex:actionFunction>, ...
2
votes
2answers
47 views

Passing values from javascript to controller

I am setting a value of hidden field in javascript which is fired on button click but when controller function is called hidden field value is not passed along as I expected. Visual Force Page: ...
0
votes
0answers
33 views

Ending position out of bounds: -1 Visuaforce page

After disabling development mode in visualforce page the following error is comming.
1
vote
1answer
18 views

getting the string values from controller to the Visual force component

I want a value from the controller in the component using the java script , but i am new to this so i don't know how to achieve it. this is my controller class. public with sharing class ...
0
votes
0answers
23 views

Using a single button for Save and edit functionality [duplicate]

In my VF page I show both save and edit button. I would like to use only one button for both edit and save. The button label should switch between save and edit depending upon the situation. That ...
1
vote
1answer
39 views

Remove Duplicate Value using Autocomplete component

Apex Class : public class AutoCompleteV2_Con { public String labelFieldVar{ get; set; } public String valueFieldVar{ get; set; } public String sObjVal{get;set;} public Integer ...
1
vote
1answer
16 views

Comparing parameters in visualforce page

Trying to compare two parameters from controller in visual force page and wondering if it is at all possible. If yes, please let me know how. Here is my code and error I encounter: ...
1
vote
1answer
42 views

Show Opportunity Fields History for users with no Opportunity object access

We redesigned our org recently to move away from CRM standard objects (e.g. Opportunity, Product) in order to utilize a cheaper force.com licenses. But one of the issues was an inability to migrate ...
0
votes
1answer
32 views

Task Activitydate in user timezone

Trying to convert DAteTime field in local user time zone with following code but get an error: Compile Error: Method does not exist or incorrect signature: [Date].format(String, String) ...
1
vote
1answer
39 views

how to display map on vf page in salesforce

how to create a map that contains the account and list of corresponding contacts then we have to display this map on a VF page.