Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [selectlist]

A list of options that allows users to select only one value or multiple values at a time, depending on the value of its multiselect attribute.

0
votes
1answer
28 views

Rendered on selectlist not unrendering when a value is selected

I have a problem that I really can't seem to understand. I have a custom Page that has 2 sections. In the first section I select the type of information wanted, and on the second section I display a ...
0
votes
1answer
23 views

Select List issue

I am facing issues with select list . I have a table of records and i am trying to fetch the selected picklist value in the controller . However seems like it is always fetching the last value .Below ...
0
votes
0answers
20 views

Ability to show validation rule errors next to Stage on VF page when restricting some stage values using selectoption

Here's my vf page: <apex:column headerValue="Stage" id="stageerrors"> <apex:actionRegion > <apex:selectList value="{!opp.opp.StageName}" multiselect="false" size="1" > <apex:...
0
votes
1answer
68 views

html-placeholder in apex:selectList: is it real? Or is there an alternative?

I use html-placeholder in apex:selectList with a few selectOptions, but it's not displayed. What can I use to fix it? <apex:selectList html-placeholder="Text here" size="1"> <apex:...
1
vote
2answers
478 views

Is this possible to position label for lightning:select on the left?

<lightning:select name="SelectOrNot" value="{!v.selectField}" label="Select One" > <aura:iteration items="{!v.TheOptions}" var="po"> <option value="{!po}">{!po}</option&...
0
votes
1answer
24 views

Apex read from multiselect SelectList in Controller and multiple for loops

I trying to post something to a Facebook page using my own API.The Visualforce Page gets the Facebook Page info and displays a checkbox. The user then selects the Pages and clicks Submit. Here is my ...
0
votes
1answer
61 views

Getting “Nesting of semi join sub-selects is not supported” when submitting query

I'm using Java to query SF, using the aPI version 33.0. I'm trying to submit the following query SELECT Id, EODBID__c from Account where Id in (Select AccountId from Opportunity where RecordTypeId ...
0
votes
1answer
364 views

How to save picklist value selected by user on visualforce page

I have a requirement where I am not displaying the actual salesforce picklist field on visualforce page but rather a self created selectlist with some values. I was able to display it on visualforce ...
0
votes
2answers
130 views

apex:actionSupport 'action' was not fired, when using onchange attribute in apex:selectList

Actionsupport action method is not fired when I use onchagen attribute in apex:selectlist. If I remove the onchange attribute from the selectlist then actionsupport is working as expected. <apex:...
4
votes
2answers
4k views

How to populate lightning:select with picklist field values?

Everything I have read online so far suggests that one must manually declare picklist (option) values when creating a lightning:select component in an Lightning application. For us, this is less than ...
0
votes
0answers
39 views

ReRender issue in SelectList

I am facing issue with re-rendering the Select List, based on the option selected in another select list. This is a working piece of code in normal VF tags and styling. When I changed the VF page to ...
1
vote
1answer
58 views

map dynamic picklist chosen value from visualforce to an actual field after doing some processing

I have a dynamic picklist that displays the name of the nominator record + contact name field on that record. What I want is that when the user selects a value from the picklist it should fetch the ...
0
votes
2answers
36 views

Loading values into a selectList from controller

I have an AppSettingsController and a VisualForce page and on the page the user enters config settings into the app. Things like a username and password and a web service URL. The web service ...
2
votes
1answer
169 views

ActionSupport on apex:selectList in table not called

I have 2 selectList on each row of a table. When the first one is changed, I need to modify the selectOptions of the second one. Currently, the ActionSupport is only called on one line and if the ...
1
vote
2answers
2k views

How do I get label of the selected item from a lightning:select drop down list?

I would like to get the value of the label of the selected drop down item. In this case, the label is the Name of the Contact. <aura:component> <aura:attribute name="contacts" type="...
-2
votes
1answer
50 views

Help with a Test code on specific Method

I'm facing difficulties to test a method, I'm assigning a string depending on the option selected, and when I'm trying to test this method does not recognize the options. public List<SelectOption&...
0
votes
1answer
53 views

Visualforce Table is not updating after selectlist option is selected and added to database

I have a visualforce page with two controllers that contains a selectList with all the Schema objects in my org. The selectlist when selected and pressed the "saved to DB" button saves the option into ...
0
votes
1answer
103 views

Dynamic Select Option in Remote Objects Visualforce. This page is not record-specific

The question is in the code comments. Thank you! <apex:page> <apex:remoteObjects > <apex:remoteObjectModel jsShortHand="js" name="myCustomObject__c" fields="Id"> <apex:...
0
votes
2answers
796 views

<apex:actionSupport> not calling controller method

I have the following VisualForce code. I want it to call a controller method each time a different option is selected. <apex:actionRegion > <apex:selectList value="{!selectedOption}" size="...
0
votes
1answer
217 views

Rerendering nested output panel at onChange event of Selectlist not working

Can anybody tell me what goes wrong with the below code? <div class="form-group row"> <apex:outputPanel id="Panel1" rendered="{!uhasAccess}"> {!isExists} <!--- This shows ...
0
votes
1answer
243 views

Facing issue in rendering apex:SelectList of salesforce

I have a scenario where I'm using the custom dependent picklist and I don't want to bind all data of VF page to the controller so I'm using immediate on action function. My requirement is that I have ...
0
votes
2answers
84 views

How to fix: rendered=“false” on a selectoption causes further selectoptions within the repeat to not render

<apex:repeat value="{!myList}" var="item" id="myRepeater"> ... <apex:selectList required="" value="{!item.newValue}" id="mySelectlist" multiselect="false" size="1" style="border:none;-...
0
votes
1answer
20 views

Disable 2nd select list values that are less than the selected value of prior list

I have 2 selectLists, Start Time and End Time. When Start Time is selected End Time list is rerendered to a time later than start time but I would also like to disable all End Time values that are &...
0
votes
1answer
500 views

Save button in visualforce page not working

This is my visualforce page which displays the selected contacts from the previous page and a list of contacts in a picklist. <apex:form> <apex:pageBlock title="Selected contacts" > &...
0
votes
2answers
591 views

Creating selectList/selectOptions from SOQL

I have a SOQL query and I want to add the results to a selectList and I'm not totally sure how. The documentation on selectList makes it look like I should loop through the results and add them as ...
0
votes
2answers
183 views

How to redirect to record detail page on selecting pick list value

Controller public class picklistController14July { public string selectedItem{get;set;} public list<selectOption> getAccountRecs(){ list<selectOption> aList = new list<...
0
votes
1answer
37 views

Property set accessor in controller not being executed by apex:selectList value attribute

I have a Visualforce form with the following pageBlockSection: <apex:pageBlockSection title="Select Vehicle"> <apex:selectList id="manufacturer" label="Manufacturer" ...
0
votes
0answers
96 views

Not getting the selected value from vf page to controller

in a vf page i have 2 select lists, from one select i am getting the selected value and rendering second select list after that i want to process some other block depends on the value of second ...
1
vote
3answers
700 views

change slds-select icon

I want to change the icon on the right of a slds-select. the default looks like this: . But I would like mine to look like this: . This is my code: <lightning:select aura:id="title" value=...
0
votes
2answers
245 views

SelectOption returning value in debug but not on vf page

I am working with visualforce and trying to set up SelectOption over the records fetched through a SOQL query. I want to populate the records in a field to a DropDown List in my VF page. While using ...
0
votes
2answers
313 views

Visualforce: Convert String into dropdown values

Trying to render the list on visualforce page and convert multiselect picklist into dropdown instead of getting selectoptions from controller. Class returntoVF { String name; object ...
3
votes
1answer
464 views

Invalid selectOptions found. Use SelectOption type in Apex (why?) [duplicate]

I was trying to add a dropdown menu inside VF page (where I already have other pageBlockTables). I only need to retrieve one field (c.sfprn) from an existing SOQL query where it is already used for ...
0
votes
1answer
46 views

Place selectCheckboxes in selectList

I'm new in Apex / VisualForce, and I'm trying to place a long list of checkboxes in a "selectList display mode", ie. a vertical and scrollable display. In practice, I've try something like this : &...
1
vote
0answers
83 views

'actionSupport' is not working when inputField is included in same 'form'

What I am doing ? I have 3 fields in an object Account(lookup to Account),User(Lookup to User) and Permissions(Multi select picklist). I needed to only show few values from all the values in ...
1
vote
1answer
180 views

Cannot save/update selectList field

In my controller I have a static list of select options: public List<SelectOption> getVesselTypeList() { List<SelectOption> options = new List<Selectoption>(); options.add(...
1
vote
2answers
355 views

Pageblocktable with dependent selectlist - wrapper rerender issues

I have problem with dependent selectlists in apex:pageblocktable. Here's my code: public class MyController { public MyController() {} public Id selectedCarId{get; set;} public Id ...
0
votes
0answers
116 views

<apex:selectlist> not showing right values

I am using Bootstrap and have two apex:selectList next to each other in bootstrap row(6,6). I am using two different variable for values for both of them and initializing them in constructor.The ...
2
votes
1answer
162 views

Visualforce: selectList not rendered

I have multiple select lists on my vf page. All work fine, except this one: <apex:pageBlockSection title="Product" > <apex:pageBlockSectionItem rendered="true"> <apex:...
1
vote
0answers
177 views

Inline Edit Support for Select List

Scenario : Loading the select list with dynamic values from the controller and allow the inlineEdit for the user to edit the picklist. I have to put this visualforce page in page layout visualforce ...
0
votes
1answer
54 views

Value of SelectList not getting captured

I have a Selectlist in my Visualforce page and I'm passing the values from the controller. The value selected is not getting captured. The code is given below. Visualforce page <apex:page ...
0
votes
2answers
769 views

Remove an option from a Visual force SelectList SelectOption

I have a VisualForce page where I am using SelectList and SelectOption. For example if my SelectOption list contians Option 1 Option 2 Option 3 I need to remove Option 2 on the page by its value not ...
0
votes
1answer
129 views

selected account(parent) name from select option,show its related child(contact obj) on vfpage

using selectoption my all account name fetched if i select anyone account name in that dropdownlist show releated contact(child record) on vfpage error showing that list has no rows ----------------...
0
votes
2answers
30 views

VF - Picklist of Accounts - Access selected value in controller

I have my list populating correctly but I don't know how to get the ID value of the selected account back to my controller. Can someone tell me the correct syntax? Useful bits of my controller: ...
0
votes
2answers
272 views

Selectlist options change not reflecting in apex class

I am facing an issue where a select list value default selected getting passed fine to controller during compile and page load. But on change simply it's even not coming on debug statement. Apexpage ...
-4
votes
1answer
160 views

apex:commandButton is rendering properly under apex:pageBlockButtons

I have defined a SelectList under pageBlockButtons. The problem is top part of SelectList is getting rendered properly [selecting Temporary from list opens another Selectlist as expected], but bottom ...
1
vote
1answer
1k views

Render an InputText based on Selected Option

In my VF page I have an apex:selectList with a List of Vendors (e.g. Alcatel,Cisco ec..), the last option is "Other". When the user select "Other" an apex:inputText should be rendered where he can ...
0
votes
1answer
443 views

How to display item label in select list option in <apex:outputtext>

I have a select-option list which contains values as (eg: SystemIdops.add(new SelectOption(system1.id,system1.NEX_Friendly_Name__c))) id,name). Name will be displayed in VF page ,when user select the ...
0
votes
0answers
446 views

Best Way to Populate Visualforce Picklists of Countries and States?

I am currently making a Visualforce Page for registration and I have both Country and State fields (both picklist) to populate. I have looked for resources online and I found out some possible ...
1
vote
1answer
672 views

Get the value of drop down list that was selected earlier

In my piece of code below, I use select list tag to get user's input for a field of an object. I have a text field type for an object which I am trying to update using a VF page. <...
2
votes
1answer
627 views

Display Selected values of one SelectList in another SelectList

I have 2 <apex:selectList>. The values of 1 selectList (called Available) are populated from Query. When user selects values from this multi-select selectList, I want to show them immediately ...