Questions tagged [selectoption]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
2k 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 ...
13
votes
3answers
3k views

Is there a way to group options in a selectList

Is there a way to group options in an apex:selectList I have in my page <apex:selectList styleclass="form-control rec" size="1" id="country" > <apex:selectOption ...
5
votes
1answer
2k views

How to populate picklist values in Lightning Componets according to the metadata definition?

In Visualforce, we didn't thought much about picklist-values (=options) on simple CRUD UIs - they where simply there using an <apex:inputField ... /> Now in Lightning I found this documentation ...
2
votes
1answer
668 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? <apex:...
2
votes
0answers
643 views

Rendered not working translated picklist value radio buttons

Im trying to translate visualforce page. I have used custom labels to built the page. the page is translated good. For picklist values I used the below code, the picklist values are also translated ...
2
votes
2answers
1k 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 <apex:...
0
votes
1answer
1k 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....
0
votes
1answer
357 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 ...
0
votes
2answers
1k 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 ...