The tag has no usage guidance.

learn more… | top users | synonyms

1
vote
2answers
30 views

Invalid selectOptions found. Use SelectOption type in Apex error

I am getting the error stated in the question. I have used a <selectOption> list in my controller and in my VF page, I have used <apex: selectOptions>. What is the issue? I have attached ...
1
vote
2answers
44 views

onchange event doesn't invoke inside <apex:repeat

My onchange event is not firing if it is inside the <apex:repeat and if I remove the repeat the onselect is invoking and working fine, what might be the issue? I do not find any log so it means ...
3
votes
2answers
85 views

SelectOption Method only working before clicking commandButton (quiscksave)

Newb Alert With a basic Extension, I populate a field with a SOQL. The desired behavior is when the lookup field is populated by a user, the second field shows a picklist with only the relevant ...
0
votes
1answer
12 views

SelectList's -Setting value with an IF condition does not work

I tried the below and it works: <apex:selectList value="{!abc}" rendered="{!IF(abc=='true','Yes','No')}" /> but <apex:selectList value="{!IF(abc=='true','Yes','No')}"/> does ...
1
vote
1answer
42 views

Salesforce1 <apex:selectlist>

As APEX:SELECTLIST is one among the unsupported Visualforce components of Salesforce1 APP is there any other solution for the select list?
2
votes
2answers
127 views

Id none must be 15 characters

I am getting below error during execution time for below code in Apex page. I am unable to assign the value from here to standard controller. Can someone please help me? Apex Page ...
0
votes
4answers
74 views

reRender problem: variable changes in controller, but not on the VF page

(I am building upon this question and the helpful answers there: Re-rendering section on picklist value change - picklist value is always null.) Requirement: On a Visualforce page, I have a picklist ...
0
votes
1answer
88 views

System.JSONException: No content to map to Object due to end of input

How to solve this error and why this error is occuring Here is my controller class public List<SelectOption> getItems() { HttpRequest req = new HttpRequest(); ...
1
vote
1answer
30 views

Double picklist with actionsupport

I've been facing with this kind of issue: I've a VFPage that has to work in a section embedded in a Standard Layout of a Standard Object (Quote). My goal to reach is: When a value is selcted from ...
1
vote
0answers
63 views

onchange event in selectList and actionSupport not firing after first time

I have a VF page where the user can select the RecordType before seeing all the fields for the selected record type on my custom object Request_For_System_Change. Here is the VF Code: ...
0
votes
1answer
19 views

Get value from selectOption [Boolean] in selectList

I need to get the boolean from a selectList. For example I have the following code. <apex:selectList id="chooseRule" value="{!}" size="1"> <apex:selectOption ...
0
votes
1answer
63 views

Get value in a variable from selectOptions {Selected option}

How could I catch the value {!items} selected and capture it in a variable? I need a simple line of code. <apex:pageBlock tabStyle="Account" title="Merge Accounts"> ...
0
votes
1answer
56 views

Disable selectList after selection is made

I have a selectList in my VF page which allows the user to select the record type. On change the appropriate fields are shown to the user by re-rendering the PageFields. But as well as re-rendering ...
0
votes
1answer
107 views

Add styleclass to selectlist same as the style of the first select option child on page load

I have a selectlist with selectoption styled individually. I want to show the background color of selectlist same as the first child option on page-load. I've this code which is not working on ...
1
vote
0answers
138 views

Add background color to each selectoption in selectlist

I've a selectlist that shows in the drop-down record names of a particular object. In that object, there is a field, says icon that stores color code specific to each record. I want to show each ...
0
votes
0answers
37 views

Render dynamic Component

I'm trying to implement a Visualforce page in which to select an item from a list of options I display a TabPanel dynamically generated. My code: <apex:page Controller="rCF" ...
-1
votes
1answer
486 views

How to display item label in select list when user select' any item in the list

I am new to salesforce and i had stuck with some problem i have select list when user selects any option in select list.I have to display that selected option in a output label i had use action ...
0
votes
1answer
129 views

SelectList onchange not firing only for some values

Having a simple apex:selectList and using apex:actionSupport to handle user selections which is working fine. Surprised that the event is not firing only for some values. page: <apex:actionRegion ...
-1
votes
1answer
239 views

how to get related opportunities of a account by select list

I have custom picklist in that have all account names when user select any account name from that list option you have to get related opportunities of that account with a checkbox should be displayed ...
1
vote
1answer
89 views

How to set default values for each selectlsit value…in a repeat tag

<apex:page controller="Questions_Controller"> <apex:form > <table border="1" width="100%"> <apex:repeat value="{!ques}" var="singleQuestion"> <tr> ...
0
votes
1answer
60 views

How to implement a SelectList

Looking for an example showing how to implement a SelectList control on a Visualforce page using an extension class. I am able to display the selectList, but I am not sure how to save the value to ...
3
votes
0answers
62 views

<optgroup> functionality in salesforce

Good day everyone, I want to create a select in salesforce which look is similar to html tag optgroup. I want create an option within an option. Is it possible ? If yes, how will I do it ? Thanks... ...
0
votes
0answers
95 views

Visual Force - Wrapper Class integration

I am having issues integrating a wrapper class generated in one controller/VF Page into another Visualforce Page displayed. With an action, the selected accounts generated by one VF Page would be ...
2
votes
1answer
1k views

How can I set the default Value on a custom SelectOption List?

The Following works good to retrieve my account list in a SelectList on my VF. But I'm trying to set a specific Default Account as the first value in the list - Now it shows up last.. *Is there any ...
0
votes
1answer
153 views

Aligning selectOption in PageBlockSection

me again. So, take this: <apex:pageBlockSection id="clientsList" title="Clients List" rendered="{!searchCriteria.Search_Type__c ='Clients List'}" columns="1"> ...
3
votes
1answer
113 views

How to create Select with the given Minimum and Maximum Quantity

I got product.minimum_quantity__c = 1 and product.maximum_quantity__c = 10.. How can i display it in visualforce? is there any for loop like method?.. I think <apex:repeat> will not work on ...
2
votes
1answer
64 views

List Remove Item OffSet

Below I select all accounts and I remove accounts with the lastactivitydate <60 days. Now I have a problem with the offset size, because I show on each page 12 records, but If a record is removed, ...
3
votes
3answers
485 views

How to pass selected item's id from picklist to controller?

VF Page <apex:selectList size="1" value="{!interaction.Company__c}" id="interactionCompany"> <apex:selectOptions value="{!allCompanyOrgUnit}"/> <apex:actionSupport ...
0
votes
0answers
172 views

Passing Picklist Values to Controller

I found a nice Class which can get all controlling and dependable fields from Org. By giving the method the Selected Value from my Controlling picklist "Specialty" - basically transferring the Value ...
2
votes
2answers
126 views

How to display a selectlist in the title portion of a pageblock

On my VF page I have a page block that contains a table inside it. I wanted to be able to put selectlists to filter the data in the table, and ideally I want to put them at the top of a pageblock so ...
1
vote
1answer
395 views

apex:selectList inside a table column does not display correctly

I've added an apex:selectList inside of a table column in a visualforce page. The rendered output is wrong - the selectList doesn't show up in the correct column - it actually gets rendered in a new ...
0
votes
1answer
2k views

how to get the selected item value from select list and process it

VF Page: <apex:page controller="Ctrl_Event_Registration"> <apex:form > <apex:pageBlock title="Event Registration"> <apex:pageBlockButtons > <apex:commandButton ...
2
votes
1answer
1k views

<apex:selectlist> value don't pass to controller

I'm trying to do a simple selectList, and pass the value to controller when I click a button. Sounds simple (and it is), but I can't get this to work and I dont now why. VF Page <td> ...
0
votes
1answer
111 views

SOQL join query between child-parent related objects

I have the following relation between objects: Group__c AsociationGroupOrder__c Order Account Id <------- Group__c Format__c Pedido__c -----------> Id ...
2
votes
1answer
106 views

Unable to call Controller's method if select list is used

I have a strange issue.In my form I am using select list tag with multiselect attribute=false.The problem is,selected value for this picklist which is stored in database does not comes as selected in ...
1
vote
1answer
52 views

SelectList disappears when the value is an object's picklist

I have a simple page with a form that is supposed to create a custom object. This custom object has several picklist fields. I can dynamically populate the selectLists, but when I give the selectList ...
0
votes
2answers
458 views

dependent picklist in Visualforce issue (apex action method must be a page reference)

I am trying to create a custom dependent picklist in Visualforce (I cannot use the standard field tags because the guest site user does not have access to the User object). I am using the selectOption ...
0
votes
1answer
127 views

Preserve ListView in Visualforce and Apex

I have overriden a tab with Visualforce page. I have used standard controller and the following markup to display different views: <apex:selectList value="{!filterId}" size="1"> ...
1
vote
1answer
151 views

selectlist inside apex:column errors out

I have a pageblock table with column as a selectlist, populated from controller. Here is the code: <apex:pageBlockTable value="{!records}" var="k" id="thePageBlockTable" ...
0
votes
1answer
546 views

How to create a selectlist populated by records that list lookup relationship records?

I have been stuck on this problem for days. Basically I have a select list populated by all records in the custom object "Sprint__c". When I select a record in that select list, I am trying to list ...
3
votes
1answer
143 views

Output label not conditional

I have a requirement to show page message for a particular selected template. The template selection done here. But render is always returning true in this case. Can someone help me here? ...
1
vote
1answer
382 views

Need selectList value setter to be set after reRender

I have 3 selectLists. A, B, and C. B is dependent on A, and C is dependent on B. When selectList A changes, I rerender select list B, and C. <apex:selectList id='listAId' ...
0
votes
1answer
346 views

Display All records from dropdownlist

I have a page where I'm displaying List of records of an object (Product) on selecting each record from a dropdown list (default value -----------------Select----------). My requirement is the moment ...
0
votes
0answers
163 views

SelectList value unexpectedly NULL

Why should selectedsProdAdd (that represents the value for one of the selectList in the page) be null in the LtoR() method? Controller: public without sharing class PackManager { public ...
0
votes
1answer
2k views

How actionSupport will work when used with selectList? Is it work on the copy of variables?

I'm working on custom picklist. What I want to do is: when i select a value from picklist, then update some data in list. Then this updated list data should be populated on the VF page. I used ...
0
votes
0answers
420 views

Dynamic picklist column in pageBlockTable

I have a Visualforce page for an Order form in my Salesforce instance. The form includes a pageBlockTable for the products (line items) being ordered. So there is a button to add another line item, ...
2
votes
1answer
494 views

Display all data when no value is selected from dropdown list

I am displaying a dropdown list of Accounts on VF page which is displaying other field's values on selecting the Accounts. This functionality is working fine. My additional requirement is I need to ...
0
votes
2answers
321 views

CommandButton action doesn't populate selectList field

I've got a simple VisualForce page with a form that has one custom picklist. My controller successfully populates the custom picklist and the page renders fine. But when I click on the CommandButton ...
0
votes
1answer
194 views

Lookup Window From SelectList Option

Here's the deal: I have a search field that searchs the object selected from the list, presenting the results below in a table. But in my next step, i want to add the lookup icon next to the text ...
1
vote
1answer
250 views

Split selectCheckBox into two columns?

I would like to use a selectCheckbox for a field but the design team wants the options to be in two columns like so opt 1 | opt 2 ------------- opt 3 | opt 4 ------------- opt 5 | Im sure I could ...