Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Everyone's tags (1)
3 REPLIES
Community Member

Re: Is it possible to have a dropdown with a blank option

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

Community Member

Is it possible to have a dropdown with a blank option

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

Community Member

Is it possible to have a dropdown with a blank option

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!

147
Views
0
Helpful
3
Replies
CreatePlease to create content