Visualforce is Salesforce.com's HTML template technology, allowing dynamic creation of web pages (as well as other files) utilising Apex logic and SOQL queries to replace merge fields with content.

learn more… | top users | synonyms (2)

0
votes
0answers
5 views

How TO Upload Any attachment on custom object also rediobutton value for registration

i want to store radio buton value which i selected and as wel as associated question also Same custom to store Upload Any attachment like Registration Hi, the following is my example.......problem ...
0
votes
0answers
14 views

Tool tips in visualforce chart

I have a VF where I am plotting percentages in bar graphs, but in the tooltip, I want to show the revenue associated with the record. Please note that percentage and revenue are in the same wrapper ...
1
vote
1answer
30 views

Prepopulate values

I have custom button on Opportunity.On click of button I need to pre populate values on contract with values from oppty.Once Contract is saved I need to populate Contract lookup on Oppty with the ...
2
votes
2answers
18 views

OOTB Multiple contacts feature in Visualforce

Is it possible to access the new OOTB multiple contacts on tasks feature?
1
vote
0answers
18 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
19 views

Accessing child records in visualforce

I have an object Feedback_Comment__c which lookups to Feedback__c. How can I access "Feedback_Comment__c" fields in a datatable column? I could pull all Feedback__c fields like this... ...
0
votes
0answers
14 views

Render text as HTML in visualforce page or custom field?

I would like option for users to post text as html to a custom object page layout. (custom field doesn't seem possible as it looks like Rich Text field doesn't render HTML) Moving from JIRA to ...
2
votes
3answers
21 views

Change VF background with Javascript reference to a Static Resource image

I have made a small script to change the background color of my VF page. Here's my script <script language="JavaScript"> function changeBGC(color){ document.bgColor = color; } and ...
0
votes
0answers
20 views

Get fields name into a Javascript loop

I do a loop on random fields of Attachment object and I try to get the label of fields. // arr is an array with some random fields of Attachment object for (var i=0, i<arr.length; i++) { var ...
0
votes
1answer
17 views

Editing Custom Object Records in a dataTable

Unable to edit a custom object in VF. Here is my controller public class dataTableCon { List<Feedback__c> fb; List<Feedback_Comment__c> fbc; public List<Feedback__c> getAccounts() ...
0
votes
2answers
45 views

What are best coding practices for SFDC? [on hold]

I was searching on net for best coding practices and found many like which focus on one item for ex. no soql in loop and things like that but did not find consolidated list. So here posting this ...
1
vote
0answers
11 views

Security Scanner finds XSS False Positives / JSENCODE incompatible with Boolean fields?

Before I submit my app for Security Review I checked it with the free scanner. It marked the following line of JS-code in a Visualforce as Critical XSS vulnerability: <script>var trueOrFalse = ...
1
vote
1answer
93 views

Pass a String in Select query - SOQL

I have a String that contains some custom fields of Account. I want to pass a String in a Select query like this : String myString = 'myCustomField1__c, myCustomField2__c'; List<Account> ...
1
vote
1answer
42 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?
1
vote
1answer
15 views

Visualforce - Creating Markup without tied to underlying object

Is it possible to create an apex tag like <apex:inputCheckBox> without binding to a column in the underlying object ?. <!-- For this example to render properly, you must associate the ...
-1
votes
1answer
23 views

unable to achieve the functionality to show records in same visual force page [on hold]

unable to show records in same visual force page hi i am having a visual force page when i save records it must save just below in same visual force page unless it redirect to record detail page.
2
votes
0answers
26 views

How to display levels dynamically?

Hi, Here i want to select level according to that level below rows will appear like if i select level 1 row will select if level is 2 show 2 rows level1 and level2? <apex:page ...
0
votes
0answers
21 views

VisualForce page is not working on Mozilla

I have visual force page which works well on chrome but on mozilla page just refreshes on click of button which calls remote method. In developer console I don't see any error message logged. I think ...
0
votes
1answer
15 views

Need Better Search Conditions on Duplicate VF Page [on hold]

I have an apex class that brings up duplicates when a user enters in an account name in the search box on the visualforce page. Right now, the search takes the exact letters written into the search ...
5
votes
1answer
37 views

Visualforce remote objects

I was reading through this documentation. http://docs.releasenotes.salesforce.com/en-us/spring14/release-notes/rn_vf_remote_objects.htm As per the doc: Visualforce Remote Objects are proxy ...
2
votes
2answers
39 views

Truncate inputtext field

the input for my inputtextbox is stored in a value which is a textarea(255). Can I somehow truncate the input field so they cannot put in more then 255 characters? right now it lets them but it causes ...
1
vote
0answers
36 views

CSS not displaying border when rendered as PDF in 2nd page

I have created a visualforce page rendered as PDF.But in PDF the first page is showing with lot of whitespace on the top and in the remaining pages the border on the top is not displaying . i think ...
0
votes
0answers
18 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 ...
0
votes
0answers
16 views

Rerender Not Working With Search Function

So everything works. The search works, the results are correct, the page is just not diplaying results correctly. I thought maybe it was SF limitations on apex:repeat but it's not working for either ...
1
vote
1answer
10 views

email BCC limit

I am sending out emails via APEX code. SO far I am facing exceptions when the bcc characters are around 500 - 550 characters or more, and the number of bcc email addresses is around 21 - 25 or more. ...
1
vote
1answer
17 views

PageBlockTable not reRendering correctly after commandButton click

I has to reRender the pageblocktable after commandButton click. I am displaying custom object values in a pageblocktable. There is another pageblock to insert new record into the object along with a ...
4
votes
1answer
32 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
1answer
21 views

Checkbox in datatable does not update boolean in wrapper class

I have a wizard comprising of two visualforce pages, a controller, and a wrapper class. After much messing around I've found the root of the problem I've been having. On the first page of my wizard, ...
1
vote
1answer
15 views

Problem adding css to Visualforce Page

Inline css is working. But I'm unable to call from an external css the same code. Following is in VF.. <apex:stylesheet value="{!URLFOR($Resource.style, 'style.css')}"/> And my style.css ...
1
vote
2answers
29 views

Trouble adding image to Visualforce page rendred as PDF

I'm attempting to add my company logo to a visual force page, which is then being rendered as a pdf, but have not been successful Logo.zip is a static ressource images.jpg is the logo within the zip ...
-2
votes
1answer
27 views

How to display lay out in visualforce page?

I want to display this opportunity page please tell me how to create it.
0
votes
0answers
34 views

Radio Button is Not populating

In my Visualforce page I have 3 radio buttons and 2 text fields. If I select the first radio button automatically field 1 is shown and field 2 is hidden. I select radio button 1 & field 1 and ...
0
votes
2answers
34 views

Dynamically display picklist values based on Record type in vf page

I am having two record type "Record Type 1" and "Record Type 2" on case object. In this two record type we are a having a picklist field call state__c. In Record Type 1 State__c values are "A,B,D" In ...
1
vote
1answer
61 views

How can I hide field labels in a Visualforce page?

here i have crated a vf page and wrote a script but the labels are not hide please let me know? This was the below code.. <apex:page standardController="opportunity"> <apex:includeScript ...
2
votes
1answer
24 views

Saving a new record in VF - using extension to add fields user cannot add

I have been working on this for a day too long and I do not know why I'm not getting it. It should be the simplest thing.. A user can review a thing. All I want them to do is make a rating 1-5 and ...
2
votes
3answers
46 views

How to limit <apex:textArea> length?

I am having trouble with data type Text Area(255), as there is no limit of character length. I am having 1 field, Next_Step__c which is of data type Text Area. I am showing it in VF page: ...
0
votes
0answers
16 views

How could I know if a dependent picklist is not editable or it's disabled in VFP?

I created a Visualforce Page an added some dependent picklist in a table. What I want to do is detect (if it´s possible) if the dependent picklist is disabled because of the controlling field value ...
0
votes
1answer
21 views

Passing Javascript Value to Controller is Nulling

I am trying to pass from my JS to my controller and in the console log, All the values appear correctly. When I check the controller they are all null. I have looked it over 1000 Times. It could be a ...
1
vote
1answer
31 views

unwanted date picker in visual force page

I' having a problem on a visual force page. To demonstrate I created this simple page: <apex:page showHeader="false"> <apex:form > This is a test page </apex:form> ...
0
votes
1answer
26 views

Ajax call not refreshing form data

I am trying to use ajax - apex:actionfunction to update related account when opportunity is selected. <apex:form id="myForm1"> <apex:pageBlock id="myPageBlock1"> <tr> <td ...
2
votes
2answers
19 views

PageReference Does Not Direct to selected Radio Button

I have an apex class that brings up duplicates when a user enters in an account name in the search box on the visualforce page. The only thing I can't figure out is when there is more than one ...
1
vote
2answers
30 views

How to display Opportunity amounts in a VF page inline for account over time period?

I am tasked with creating an inline view from the accounts view page that shows opportunity amounts (won-closed) for the 12 months of the year, a total amount field, and prior year amounts, associated ...
4
votes
0answers
20 views

Select file and call upload method with one click? - apex:inputFile

When using apex:inputFile to attach docs to an object, <apex:inputFile value="{!attachment.body}" filename="{!attachment.name}" id="file"/> I need to click a second button after selecting my ...
2
votes
2answers
112 views

How to apply third “if” condition in styleclass?

I have a third class Class3 that needs to be applied for Status__c == 'In Progress'. This is my code. styleClass="{!IF(account.Status__c == 'Closed','Class1','Class2')}"/> Basically I'm ...
2
votes
1answer
55 views

Selected state of Radio Button In Visualforce Page

Attempt to clarify: In my Visualforce page I have 3 radio buttons and 2 text fields. If I select the first radio button automatically field 1 is shown and field 2 is hidden. I select radio button 1 ...
2
votes
1answer
47 views

How to hide fields (input) by jQuery - Visualforce

I would like to show or hide fields depending on the value of another field. I was not able to find and implement the existing topics. function selectService (){ if($jquery('[id$=inField1]').val() ...
0
votes
0answers
12 views

Is it possible to Navigate back in Salesforce1 to previous page after save processing?

Is there a way I can go back to previous calling page after processing save on a Visualforce Page in Salesforce1? I've a Page where I click a link and I use navigateURL() function to process this ...
1
vote
1answer
25 views

Can I change the color of a VF table cell dynamically?

I have a picklist called Status, displayed in a Visualforce table with fields like .. Closed Open Critical <div id="col1"> <apex:column > <apex:facet ...
2
votes
1answer
76 views

Is there a way to overwrite the CSS of apex components in salesforce?

I'm using a pageBlock component, it's obviously very handy for storing my returned object/s but I really don't like how it looks. As I'm quite new to apex/salesforce, I'm wondering is there a way to ...
1
vote
1answer
19 views

Add Row Functionality in Salesforce [duplicate]

Can a similar Add Row functionality as shown above be implemented in Salesforce? I don't necessarily want to create new custom fields each time, but at least make them visible when the button is ...