Reply to topic
Using cfinput to check to field?
Ennio


Joined: 17 Nov 2006
Posts: 101
Location: Scotch Plains, NJ
Reply with quote
I have a cfform, and I need to check if the user entered the valid email address, so I created two email fields for the user to enter it.

Now how can I check to see if one is equal the other? I'm using cf validation, so when I create my JS to check is both fields are the same it doesn't work. any idea on how can I do that? I'm checking if both fields are the same when I submit the form.
Re: Using cfinput to check to field?
Jason101
Forum Regular

Joined: 14 Mar 2006
Posts: 550
Location: Harrisburg, PA
Reply with quote
Ennio wrote:
I have a cfform, and I need to check if the user entered the valid email address, so I created two email fields for the user to enter it.

Now how can I check to see if one is equal the other? I'm using cf validation, so when I create my JS to check is both fields are the same it doesn't work. any idea on how can I do that? I'm checking if both fields are the same when I submit the form.


If you want to check if both are equal, don't use CFForm. CFForm can't do that. You can still use cfform for other validation, just make those two inputs just regular <input> then write your javascript to check them.
Using cfinput to check to field?
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic