Form Validation Forum :: Check Unique Key

This thread was displayed: 71 times


Starting with 17th May 2007, Adobe Systems will stop offering support for any version of the discontinued InterAKT products. As a result, we will not answer to new support incidents starting with May 17th, 2007. Pending support incidents will still be followed in order to be closed. The product forums will remain open and be transformed in user-to-user forums. The general forums will be made read-only and not allow new posts or comments.

For more information about the affected products visit: www.interaktonline.com/Support/

View Threaded Show descending
Ernesto Casareto
02-08-2007 10:53:20 GMT +2

Hello,

I'm trying to use the "check unique key" beheavior to avoid users register the same e-mail address in the newsletter registration form.

I know I could just set the fild as "unique" in the MySQL DB, but I would like to show a proper message instead of the standard one.

I tried to use check unique beheavior but it doesn't seem to be working. It doesn't let me use the same e-mail address two times, but it doesn't show the error message.

the address of the page is www.ernestocasareto.it

Thank you for your help

Ernesto

Back | Reply | Quote | Top
Razvan Racasanu[InterAKT]Adobe Systems Romania staff
02-09-2007 11:15:33 GMT +2

Hello,

Can you attach the registration file where you have added the trigger so we can see how was this generated?

Regards,
Razvan RACASANU

Reply | Quote | Top
Ernesto Casareto
02-09-2007 11:22:24 GMT +2

Ok, here is the file.

Thanks

Ernesto

Reply | Quote | Top
Razvan Racasanu[InterAKT]Adobe Systems Romania staff
02-12-2007 15:38:27 GMT +2

Hello,

This is happening because you have removed the code that shows the error for the field. The following line should be right after the field, just like it is for the other field:

<?php echo $tNGs->displayFieldError("mailinglist_mlg", "email_mlg"); ?>

Also, the first parameter for the other field should alsp be mailinglist_mlg and not newsletter_nws sine newsletter_nws is the table associated with the transaction.

Regards,
Razvan RACASANU

Reply | Quote | Top
© Adobe Systems Romania. All rights reserved.