Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamically set cfinput text values

Status
Not open for further replies.

uconn1981

Programmer
Mar 21, 2005
42
US
I have two fields. One is cfselect. The other one is cfinput text for date. I want to do the following:

Dependong on the item selected in the cfselect field, there should dynamically display the date range a user should input. For example:

for item 1 selected display: you should input a date between 1980-1984.
for item 2 selected: you should input a date between 1985-1988
... so on.

How can we do that?

Thanks,

Tim
 
javascript unless you want to reload the page.

Your form action script would check to see if a date was entered. if it was, process the form as normal.

If a date was not entered, but a cfselect item was choosen, send the user back to the form page. Now you have a variable from the cfselect in either the url or form scope to use to decide what message (date range) to display.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top