Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Remove the (none) option on state dropdown View modes: 
User avatar
Member
Member
caleb.bender@itt.com - 12/12/2013 8:40:33 AM
   
Remove the (none) option on state dropdown
I need to force the users to select a state if there is one and the (none) option of the country selector allows them to select none. How can I remove the (none) option on the state dropdown that is generated from the country selector control or force the users to select a state and not the none option. Thanks in advance for help.

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 12/12/2013 2:55:48 PM
   
RE:Remove the (none) option on state dropdown
You would have to modify the code in this file ~/CMSFormControls/CountrySelector.ascx.cs. What I would do is create a copy of it and add a new Form Control in the Site Manager>Development area. This will allow you to use it within other areas with your customization. Looks like it could be as simple as adding another property for the user to select or not when setting up the field.