11-17-2011 06:05 PM
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.
11-17-2011 06:05 PM
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
11-17-2011 06:05 PM
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
11-17-2011 06:05 PM
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!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide