« Return to Thread: {html_select_date} related query

{html_select_date} related query

by gags007 :: Rate this Message:

Reply to Author | View in Thread

Hi Friends,

I want to add a default value at the begining of the "Day", "Month" and "Year" dropdowns that are displayed when i use the following command in my tpl file:

{html_select_date prefix='birth_' field_order='DMY' end_year='-100'}

Is that possible? I need to use this to check if the user has actually selected a value from the dropdowns or not?
For example, I want my day dropdown to look like this:

 <select name="birth_Day">
<option label="00" value="-1">Select a Day</option>    // This is the extra value I want to add for each dropdown
<option label="01" value="1">01</option>
<option label="02" value="2">02</option>
<option label="03" value="3">03</option>
<option label="04" value="4">04</option>

 « Return to Thread: {html_select_date} related query