cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
735
Views
0
Helpful
3
Replies

Is it possible to have a dropdown with a blank option

Is it possible to have a dropdown with a blank option

1) When desigining a form is it possible to have a dropdown with a blank option as the first option.

2) Also if the field is a required field will the application prompt the user if the blank option is selected.

3 Replies 3

sakam
Level 1
Level 1

1) If you are using any dynamic data from database tables then you can use below sample query:

select  * from (Select ' ' QueueName, ' '  QueueValue from tabXYZ where  columnname = <provide some value that is not available in this  column>
union
Select columnname QueueName, columnname QueueValue from tabXYZ) s
order by QueueValue

2) Onsumbit of the form in ISF you need to capture the empty value(' ') for validation

Emir AmEx (9.1)
Level 1
Level 1

yes it is.

1. you can use form onload event to do this via JS. Do your regular values via ServiceDesigner, and then add the first value via JS.

2. If you cod eit correctly it will be caught by the validator

James Fuller
Level 1
Level 1

Here is a link to a discussion similar in nature: http://newscale-yes.groupswim.com/groups/isfhowtoandbestpractices/discussion/936459

That discussion has a validation script for a dropdown element in it.

Cheers!

Review Cisco Networking for a $25 gift card