Skip to main content

Questions tagged [selectoption]

Filter by
Sorted by
Tagged with
0 votes
2 answers
972 views

Omniscript, Select Custom option source, Apex class

I want to use Apex class to get options in my select element. In select property I set 'Oprion source' to Custom and 'Source' to class.method, but it does not work. My select is empty. Activate ...
maggie's user avatar
  • 1
0 votes
2 answers
926 views

LWC select element with multiple

I'am trying to retrieve all the selected values from a select element with multiple options but I can only grab the last selected value. HTML <select class="slds-select" id="select-...
kkJhn's user avatar
  • 23
0 votes
1 answer
510 views

lightning-combobox throwing error on selection

I have a lightning-combobox which gives the options to select a field from an fetched apex collection. The component loads without any issue on the page as soon as I select an option I get a page ...
Thomas's user avatar
  • 2,320
3 votes
1 answer
7k views

html select is not working when manipulated from js

I am currently writing an LWC OSS project and am currently confused about some reproducible side-effects on a <select>. The element can be "injected" from outside, by setting the value ...
itsmebasti's user avatar
  • 6,535
0 votes
2 answers
276 views

Apex:SelectOption does not show selected value on page reload

I am trying to get values for apex select list from a API call. I can get all the values, show them on the page, do what I need to do etc. However, when I reload the page, I my dropdown list does not ...
xaero's user avatar
  • 1
1 vote
2 answers
4k views

Lightning combobox not showing values

Below is my code I have combobox values in my activityOptions but my combobox does not displays anything. Please help me with this issue. .js // Complete activity for (let v of this.activity) { ...
Indresh bhargav's user avatar
0 votes
1 answer
2k views

How to set value in lightning:combobox in aura lightning?

<lightning:combobox aura:id="filterCaseType" label = "{!$Label.c.CPL_Event_Type}" name="caseTypes" placeholder="Case Type" options="{!v....
user3012372's user avatar
0 votes
1 answer
230 views

reRender Page Block Sections Based on Selected Value of a selectList

I am creating a Visualforce page and I have a section where I want to add in a Select List with three values and based on the value that is selected I want it to display a specific Page Block Section ...
cmmoutes13's user avatar
  • 1,057
0 votes
1 answer
196 views

Selectlist value is not binding while changing selectoption

Selectlist value is not binding to the controller variable while changing selectoption. <td role="gridcell" style="white-space:unset;text-align:left;display:{!IF( selectId=="...
SFDC 44's user avatar
  • 664
0 votes
1 answer
38 views

capture value from drowndown in iteration

Newbie in SFA development, however I have experienced in ASP.NET (C#) development. I have a question regarding this output: the NAME COLUMN is list of PRODUCT populated from the Salesforce Object. ...
Akosi Jeff's user avatar
0 votes
1 answer
862 views

How to setup help text for radio button with onmousehover

i was new to visualforce development currently I'm trying to setup help text or display some information when users mousehover on the radio button options. But when i try to fetch the value with ...
Pavan tej's user avatar
  • 1,460
0 votes
1 answer
659 views

component.set('v.options') not working for lightning combobox

I am trying to set the options of a lightning combobox component dynamically by using component.set('v.options', myOptions) as was the case for the now deprecated ui:inputSelect but it seems not to be ...
user73893's user avatar
  • 315
0 votes
1 answer
34 views

CommandButton action fails when selectList is populated

I have a visualforce page where I have a form with 4 separate selectLists with options populated based on different user groups. So far so good. This form also has a submit button which triggers a ...
Jeremy Canning's user avatar
0 votes
2 answers
2k views

Visualforce: Show/Hide input field based on selection of one SelectOption in SelectCheckbox

I have a large <apex:form>, and in one section of the form, I am displaying a checkbox list based on the values on a custom object picklist ("Case Reasons"). The user can choose multiple items. ...
SJ2363's user avatar
  • 1
0 votes
1 answer
415 views

How to include selectOption field for aura datatable

I am trying to build a datatable with selectOption as one of the table columns. i.e. doInit : function(component, event, helper){ component.set('v.columns', [ {label: 'Booking Name', ...
saint's user avatar
  • 307
5 votes
2 answers
27k views

How to create select option in LWC?

I am creating a select option in LWC. From server side controller I am returning list of wrapper having key and value as below- [{"key":"All Accounts","value":"00B7F000006l0B3UAI"}] I the html ...
Ajay Prakash Dubey's user avatar
0 votes
1 answer
371 views

Selectoption value is not passed to controller

Status picklist values are : New,Pending,Closed. In onchange i am trying to pass selected picklist value . If i select New/Pending/Closed the value is passed to controller .But when i chose the ...
jessy's user avatar
  • 29
0 votes
0 answers
33 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:...
Prudhvi P's user avatar
1 vote
2 answers
952 views

SelectOption List not populating dropdown on VF Page

I've been over the code a thousand times but cannot work out why the getVenueLst() method is not populating the SelectList on the vf page. Anyone have any ideas? Controller Public string ...
Joe Hayes's user avatar
  • 372
0 votes
1 answer
713 views

Style apex select option in Bootstrap theme

Please help me to style custom picklist in bootstrap theme. So I have a controller with code: public List<selectOption> getSettings() { List<SelectOption> options = new List<...
Viktor's user avatar
  • 360
0 votes
1 answer
646 views

Getting selectoption value in method to query

I need to take user name from the select option picklist from vf page and on the basis of that value i need to show tasks related to that user. i am using below code but unable to get exact reason ...
Ashutosh Srivastava's user avatar
0 votes
1 answer
2k 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 ...
Student's user avatar
  • 565
0 votes
1 answer
378 views

How to execute if condition inside option tag in Lightning Component

I wanted to display a different text for a specific set of result from the records. I tried the following code but it just displays the condition as it is. Is this even possible inside the option tag? ...
krisstannum's user avatar
0 votes
0 answers
176 views

CSS - Salesforce Picklists extra padding/margin on standard layouts? > select option

This seems to happen only in Chrome - I have tried the following: Removed all extensions Removed Profile Reset all flags Reset Settings Reinstalled Chrome I even navigated to google\chrome\user ...
rmarq423's user avatar
  • 977
0 votes
1 answer
2k views

Why is SelectOption not supported by JSON class? [duplicate]

Here's the code: List<SelectOption> options = new List<SelectOption>(); options.add(new SelectOption('One', 'One')); options.add(new SelectOption('Two', 'Two')); System.debug(LoggingLevel....
d_k's user avatar
  • 1,301
0 votes
1 answer
4k views

Access multi - select picklist selected values in Apex Class

I have the following multi-select picklist code in my Visualforce page <apex:selectList styleClass="form-control evemin" id="testid" size="3" multiselect="true" value="{!testVariable}" > ...
Rimii's user avatar
  • 361
1 vote
1 answer
1k views

saveRecord Component: Set Required Picklist values

I am trying to just get a simple record saved, and I continue to get errors saying I am not setting a required field, campus__c. I have a ui:select component which should explicitly define the values....
Chance's user avatar
  • 1,070
0 votes
1 answer
265 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:...
Peter Noges's user avatar
  • 1,140
-1 votes
1 answer
240 views

Test Class Variable Error [duplicate]

I havent written any test classes before and I am having trouble getting started. Can someone help me put something together for this? I'm trying to insert a record with a certain field value (...
Clink's user avatar
  • 115
1 vote
1 answer
4k views

SelectOption with every picklist value as an option

I have a table & in it there is an attribute that is a picklist with 4 values, as seen: I'm trying to make a dropdown selectlist, something that would look like this: but adding these options ...
amko's user avatar
  • 113
0 votes
1 answer
425 views

apex:selectList isn't working with apex:actionRegion

I am building a Single App Application and got this error on a vf page: apex:inputFile can not be used in conjunction with an action component, apex:commandButton or apex:commandLink that specifies ...
Json's user avatar
  • 1,667
0 votes
2 answers
302 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;-...
TheArchitecta's user avatar
0 votes
2 answers
2k 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 ...
denvergreene's user avatar
  • 1,196
1 vote
1 answer
2k views

Getting Keys from SelectOption in a String List

I have a getter method to create a SelectOption. I want to put all the keys in Returned value to a List in another Method. public List<SelectOption> getsortlist() { List<SelectOption&...
Saumya Gaikwad's user avatar
0 votes
1 answer
430 views

Limit SOQL results using 'with sharing' in Controller does not limit returned data for Pricebooks

I am running a SOQL query in a controller where I have declared 'with sharing' at the class level. The returned results are not following the sharing rules setup for the current user. The sharing ...
binaryLady's user avatar
0 votes
2 answers
877 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 ...
sf_user's user avatar
  • 2,260
0 votes
1 answer
65 views

Radio buttom disable one filed out of three inputfields [closed]

i need some option like: three input fields linked with three radio buttons, initially all the fields should active, if i click first radio button it should disable 2nd & 3rd inputfiled, please ...
Elango's user avatar
  • 1
3 votes
1 answer
832 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 ...
Java's user avatar
  • 307
0 votes
1 answer
217 views

Need Header and selectionOptions list in apex column

I am trying to have a pageBlockTable, with one of the column having the name and a selectOption list, to filter the records, the problem is i'm unable to render both of them. Either the Header label ...
Mavsav Sauve's user avatar
1 vote
3 answers
6k views

How to display a picklist based on the value chose on another picklist

I need to display two picklist in VF page. I have created a picklist using selectoption (Say PickList1) which has values of '1,2,3,4,5'. Now on selecting a value from this picklist i need to display ...
nonerd's user avatar
  • 11
1 vote
0 answers
205 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 ...
Rajeev's user avatar
  • 222
1 vote
1 answer
282 views

Is there a way to override System class?

I made a new class and named it SelectOption.cls so i could use it as wrapper class, and after a while i noticed that other Apex controller was using System SelectOption class, and that visualforce ...
Nikola Naumovski's user avatar
0 votes
1 answer
63 views

Select Ratio only showing 2 options

we are having an issue here related to select radio. We have a radio button which has potentially up to 5 options, but only the first 2 are showing up. Here is the Visualforce page code: <apex:...
Mitch Spano's user avatar
  • 1,635
0 votes
1 answer
120 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 ...
User2529's user avatar
  • 713
0 votes
2 answers
2k 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 ...
Afroz Kazi's user avatar
0 votes
2 answers
54 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: ...
Matt M's user avatar
  • 1,487
-1 votes
2 answers
2k views

How can i add label to apex:selectOptions?

I'm trying to add a label to apex:selectOptions, but cant figure out how to display it, I'v managed to add it in the object but cant display in VFP ,any help? EDIT: thanks for your answers, but let ...
Eli's user avatar
  • 151
0 votes
1 answer
604 views

Unknown property error - from Apex Page save

Please find below my apex controller for which I am getting unknown property error for TableExampleController.CISubClass.Id when I try compile my corresponding page with it. I am not getting the ...
Testing_SFDC's user avatar
  • 2,950
0 votes
1 answer
70 views

reRender value determine

Please find below code where I am facing problem with the reRender value. It's not working as expected. When I change Campaign value, as Product changes accordingly, Userlist below (which is in a ...
Testing_SFDC's user avatar
  • 2,950
0 votes
2 answers
923 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 &...
Testing_SFDC's user avatar
  • 2,950