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 (1)

0
votes
0answers
3 views

Validation error message shows for all Inputfield in pageblocktable

I have a custom page with standard controller and extension. In that I have a page block table with inputField to display account lookup. When page is submitted with wrong Account value in acccount ...
0
votes
0answers
7 views

how to add more than 1 invitee(whoid) to an event using code…?

i want to insert an event record...but like i have more than 1 lead..i want to insert more than 1 leads as an invitee... Like using whoid we can insert 1 record ... Using the standard interface we ...
2
votes
3answers
48 views

Map of API name and value pair..?

I want to create a map of apiname and value pair..please help... i want record value...like if apiname of opportunity field is name..then i want record value..ie opportunity name... for eg ...
2
votes
1answer
28 views

Unable to access nested files in static resource

I have a zip file containing images as a static resource. After repackaging the zip and uploading a new copy I'm no longer able to access the contents from VisualForce pages. I access the image like ...
0
votes
1answer
16 views

Redirect Customer Portal Login Page to VF Page

Trying to figure out a way to redirect the https://naX.salesforce.com/secur/login_portal.jsp page to a Custom VF login page. Here is my use case: My org is creating a new Customer Portal with ...
0
votes
1answer
18 views

Error: Unknown function wrapperList.size. Check spelling

I have a list of a wrapper class which i am using to display values in a pageblockTable. I want to render this pageblock only when there are records. I tried using the rendered tag on the pageblock ...
3
votes
1answer
40 views

'BLOB is not a valid UTF-8 string' error ?

Im reading in a document that the user uploads from the visualFlow: <apex:inputFile value="{!contentFile}" filename="{!nameFile}" id="file"/> as follows String ...
2
votes
1answer
24 views

input type color and upload file

I'm trying to allow a user to both upload a document and utilize the HTML input type="color". Then click Save and have both saved to the record. The color as a field on the record, the file as an ...
0
votes
2answers
18 views

Apex:include should only rendered When onclick event occurs

I'm having a page Say VFPage1 with class apex1 In my page2, my code is something like this <apex:page controller="apex1"> <apex:define name="sidebar"> <div id="sidebar"> ...
1
vote
1answer
49 views

reRender not being called, yet controller is executing

I'm stuck on a reRender issue. I have a commandButton element which calls an action function, which should reRender a pageBlock on return and then trigger an oncomplete event. Action button in ...
6
votes
2answers
47 views

How to call parametrized function from Visualforce?

I have a parametrized helper function in my controller, which formats text according to requirements. public static string getFormatMe(string a) { // do manipulation here return a; } How do ...
0
votes
1answer
40 views

Redirect from VF page to Add Products page

I have written a visualforce page with a button and i want that when it's pressed there is a redirect to the standard page ADD PRODUCT!(the page that is opened when you click OPPORTUNITY--->ADD ...
3
votes
1answer
21 views

change Locale in Visualforce

Here we are discussing about localization in Visualforce, we know best practices that involve HOW to implement localization, Custom Labels and such. We are looking for a smart way to implement the ...
0
votes
1answer
23 views

How to call a static function from Visualforce, which is not in its controller?

I need to use a static helper function in my Visualforce page which will aide in formatting the variables. However, the static helper function is in a helper class, and not in the controller class. ...
2
votes
1answer
14 views

Localization in Salesforce

Here we are discussing about localization in Visualforce, and we know these two solutions: 1) use cookies 2) use a parameter on the URL that specifies the language selected by the user Is there any ...
-1
votes
0answers
21 views

Lightbox is not closing in some browser apex

I am using lightbox in my page. While closing light box it is closing fine in all browser.. But it is not properly closing in Opera.. My light box component code - <apex:component > ...
2
votes
1answer
38 views

URL.getSalesforceBaseUrl() returns VF Subdomain URL

I'm on doing custom logs, there for I use an internal REST callout to bypass a LimitException rollback. My page: c.na15.visual.force.com/apex/TestPage Controller code: . HttpRequest req = ...
0
votes
2answers
19 views

Problem with VF Page and Field Filters based on RecordType

I have a VF page, a standard controller and a custom controller extension working with a custom object called Services__c In the controller extenstion Constructor, I have the following code (this is ...
0
votes
0answers
59 views

Reg: Validation Error: value is not valid

I have a problem in my visualforce page, while rerendering the page, by clicking any button/ any request is sent to controller. Visualforce page is: apex:page controller="selectController"> ...
0
votes
2answers
26 views

How to do a not in set comparison in Visual Force formula?

Question Given a value, how can I cleanly compare that it is not equal to a set of values in a visualforce formula? Background I'm building an email related list component driven by a field set. ...
0
votes
0answers
29 views

change the canvas UI in salesforce

I created a canvas app using heroku account, and deployed a war file to it. Now I am accessing it in my salesforce account.I want to add an input field(text) to this app in salesforce. Is it possible ...
-1
votes
1answer
62 views

Why doesn't lookup filter work on visualforce page?

I am trying to develop few look up fields on Visualforce page. Requirements: The first lookup field shows all partner Accounts. The second lookup field is filtered to show only Contacts associated ...
2
votes
0answers
15 views

How to control redirect on approval submit?

Question Is there a URL parameter I can use to control the page a user lands on after submitting a record for approval? Background I'm building out an approval process that is built on an object ...
0
votes
1answer
19 views

Dynamically assign rowClasses attribute on <apex:dataTable> component

I have a VisualForce page that render into a PDF file with the following component declaration: <apex:dataTable value="{!someSObjectList}" var="SObj" rowClasses="{!IF( MOD( pos, 2 ) == 0, ...
1
vote
1answer
28 views

Are there any difference in passing parameters to another page using pagereference.getparameter and manually generating querystring

The 2 ways of passing parameters to another page that i know of are Use the pageReference class and use its getParameter method to assign parameters pageReference pr = Page.page1; ...
0
votes
2answers
24 views

error on required input fields on rerender a section [duplicate]

I have 3 input fields in a pageblocksection, all are required. first field is select list, based on second field is rendered. so, when I select value from select list then an action function is ...
0
votes
1answer
15 views

Are there any limits on the no of parameters passed or the lenght of the parameters while using pagereference

Are there any limitations on the no of characters passed as parameters using pr.getParameters().put('sUsers', convertListtoString(selectedUsers)); Just wanted to sure i would not hit any limits
1
vote
1answer
28 views

Lookup window not closing after selecting the value in result

I am trying to get the native lookup window to open up and when the value is selected needs to populate a hidden field. I am able to call the lookup function, but when i select the value nothing ...
2
votes
3answers
36 views

Passing apex:inputField user entry as parameter into Command Link

I am getting the nickname from an inputField and updating a list of strings and displaying the list of strings on a table. The outputField displays the newly entered value, but the controller variable ...
2
votes
1answer
57 views

is there any way to show a single VF page as related list across all objects?

Is there any way to show a single vf page as a related list (inside a detail page layout) across multiple / all custom and standard objects like notes and attachments? I have integrated Salesforce ...
1
vote
2answers
71 views

How do we get a id of field from a apex:pageBlockTable?

I have a pageblocktable where i do have some input fields which also has a apex:inputtext and has a lookup icon on click of which i am calling up the native lookup. The issue i am having is with the ...
5
votes
2answers
70 views

Display records on next row in table

Hi i want to display a list in table in following way.. rec1 rec2 rec3 rec4 rec5 rec6 rec7 rec8 rec9 rec19 rec11 rec12 Where the records are displayed on the next row when a ...
0
votes
1answer
47 views

How to make a Cascading (Dependent) Select List (Drop Down) in a Data Table in VisualForce?

Outside of a data table, a cascading select list (or drop down) is done generically like so: <apex:selectList value="{!parentValue}"> <apex:selectOptions value="{!ParentOptions}" /> ...
2
votes
3answers
64 views

Implementing a form in Salesforce

I am currently the Salesforce administrator of a company Enterprise account. Our accounts are made up of universities. I was asked to implement a form for trips. The trips basic information is: Trip ...
0
votes
1answer
25 views

How would I implement a button control for an apex:panelBar?

How would I implement a button control for an apex:panelBar? I have a Previous and Next button that increase/decrease the selectedTabNumber, it updates the {!selectedTabNumber} correctly and my if ...
0
votes
1answer
38 views

How to pass the string value to Opportunity owner field from custom object's vf page?

We have created one vf page in custom object. From that, vf page we need to select an opportunity name from hardcoded picklist values and need to select the existing account where we need to create an ...
7
votes
2answers
55 views

Hide the whole empty row of table in VF page when rendered as pdf

I am showing object fields by using <table>,<tr> and <td> tags in page to show the details in some format. I am using following condition to show data on the page, if field is not ...
1
vote
1answer
40 views

ForceTK - Request parameters not being passed

I'm having a problem accessing the REST API from a VF page. Basically, the request performs OK, except for the parameters, which are not being set/do not arrive on the endpoint. I'm using forcetk to ...
-5
votes
1answer
60 views

Validate lookup and input fields [closed]

I have created a 2 fields in VF page one is Lookup and other one is inputfield. In the same page i am having a custom button. when i click the custom button, if any one of the these two is left ...
2
votes
1answer
31 views

Can we rerender related list on Case page conditionally

I am trying to show related list on case page conditionally, only if the case is owned by the Current logged in salesforce User. Is there any workaround for this? Thanks, Jai
3
votes
1answer
34 views

apex:pageBlockSectionItem collaspe or expand throws “twistSection is not defined” JavaScript exception

I have an apex:pageBlockSection defined within an apex:component. The component is used within an apex:pageBlock of a Visualforce page. It isn't rendered when the page initially loads. When a user ...
1
vote
1answer
44 views

Scheduling a visualforce page as CSV

I am posting my approach, but still unable to send the VF page data as email attachment. scheuler + batch : global class Schedule_report implements Schedulable { global void ...
0
votes
0answers
17 views

Sites Guest User Submissions Don't Work

I have a VisualForce page and Controller Extension. Everything works great for Standard users accessing the VisualForce page. They fill in values, submit the form and get redirected to a different URL ...
3
votes
1answer
46 views

VisualForce AJAX with actionFunction acts in a strange way, any insight?

I have two picklists in a visualforce page with a controller extension: <apex:actionFunction name="updateModelList" rerender="modelSelect"/> .... <apex:selectList value="{!selectedBrand}" ...
2
votes
2answers
81 views

How to open in new window using pagereference?

How do we open a pagereference object in a new window? I cant seem to find anything on the documentation for opening in new window. I need to open up a new page on click of a commandbutton. Is that ...
2
votes
3answers
34 views

when to use a Vforce page on a standard object

We have a client using vforce pages on the standard objects for Lead, Account and Contact. Our application is failing on these vforce pages. I asked the client why they are using a vforce page, and ...
1
vote
1answer
34 views

send email button from custom object

I am a newbie, and that's the probably reason why I am lost with this problem. I have two email templates created (one for students, and another for professorial). There is a custom object, and I need ...
0
votes
1answer
43 views

Using Javascript to reference a VF field and update database

I'm trying to reference a VF form field in my javascript and update in the database. I've got the update part working, but I'm still having a lot of problem trying to referencing "temp_approver" in my ...
2
votes
1answer
62 views

Search conent of a text file in apex?

Is there an example that shows how to search a text file attached by the user, I need to extract 2 or three pieces of information from the text file, I would need to check each line for the content. ...
1
vote
0answers
20 views

How to embed a standard delete page into a custom console?

I have a custom console, with the essential registers and the user can delete an object through this page. When he click on Delete I want show him the standard delete page without the sidebar and ...

1 2 3 4 5 16