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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cfinput required based on other field data?

Status
Not open for further replies.

imstillatwork

IS-IT--Management
Sep 26, 2001
1,605
US
I don't use cfform much, but the admin section of this project it makes sense to do so in a few places...

I am hoping it is possible to bind 2 fields in a way that one is required ONLY IF the other has content...

fields are a cfinput type="file" and a cfinput type="text"

I want the text field (file desc) to be required only if there is something in the type="file" : so if the user does not choose a file, then a description is not required...

I guess i can do custom JS for this, but I don't do JS well, and would really like to know how CF does thi (if it does)

CFMX 7




Kevin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top