Design and CSS styles
Version 6.x > Design and CSS styles > Validation Regular expression View modes: 
User avatar
Member
Member
merete-grape - 11/11/2012 3:49:04 PM
   
Validation Regular expression
Need to validate my dropdown menu.
How do I make first entry not valid

Choose week; choose week
week1;week1
week2;week2
week3;week3

And what is the best way to make dependency between dropdown menues?
First dropdown is populated from SQL query.... need to use selected from this menu to populate next dropdown from another table.

User avatar
Kentico Support
Kentico Support
kentico_radekm - 11/12/2012 5:48:34 AM
   
RE:Validation Regular expression
Hello.

As you already suggested in your headline, you can write regular expression for that. Optional, you can write “value;name” as “1;choose name” and validate selected value for number (using Regex).

As for your second question, please refer to following KB article:
http://devnet.kentico.com/Knowledge-Base/Web-parts-Controls/How-to-create-a-dynamically-filled-drop-down-menus.aspx

Best Regards,
Radek Macalik