Validation and Anti Spam

mac 06 Feb, 2009
Hello,
in the Field 'Form HTML' in Form Code i paste some html/php code (form contact).
now i want some fields to get validation.
also i want to insert the Anti Spam captcha field.
Please can you help me with a tutorial.
Thanks a lot.
Regards
Mac
Max_admin 06 Feb, 2009
Hi Mac,

you will need to know your fields names which you want validated and go to the "validation" tab and enable the validation and follow the tooltips to add the fields to be validated!

you need to write {imageverification} word in the desired place in your form where you want the captcha image and input box to show!

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
mac 06 Feb, 2009
Thanks!
1. If the user wrote the wrong captcha letters in field - i want to have the message on the same site and not in a new site. where can i config this?

2. for the validation i have another wish. is it possible to team a choice from a drop down field with a some other fields.
for example: when the user choice from the drop down field 'i want to have contact by E-Mail' then he the field 'your E-Mail-Adress' must be valid; when he choice 'contact by post' then the field adress must be valid.
3. How can i check that the E-Mail Adress ist correctly insert?

Thank you for your help
Mac
GreyHead 06 Feb, 2009
Hi mac,

I don't understand Q1. ChronoForms doesn't send you to another site unless you use a ReDirect or an OnSubmit url. (If you use an OnSubmit URL then ChronoForms will never see the submitted form data to check the imageverification.)

Q2, Yes, but you'll need to code this for yourself - probably needs a little JavaScript snippet.

Q3, you can use the built-in email validation - if I understand the question correctly. (Max explained this in his post.)

Bob
mac 07 Feb, 2009
Hi Bob,
sorry, my english is so bad 😶 i will try it again.

1. The problem with 'on submit' it turns to a new page
index.php?option=com_chronocontact&task=send&chronoformname=kontaktformular

3. Where can i change this message-letters 'This is a required field.'?


Thanks a lot.
Regards
mac
GreyHead 07 Feb, 2009
Hi mac,

No problem.

To try to answer the second problem first - you have a lot of code in your form html that doesn't belong there. You only need the code *between* the <form . . .> and </form> tags and *possibly* some of the php.

Your form isn't redisplaying because your form code tells it not to!!

You can add custom validation messages by using the title attribute in the form field:
<input type='text' . . . title='Dies ist ein Pflichtfeld' . . ./>


Bob
mac 07 Feb, 2009
Thanks Bob,
the message in the under the field box is now in german :wink:
but the Anti Spam Field do not work - the is no message when i ignore the field.

on submit this message is shown:
You are not allowed to access this URL

mac
GreyHead 07 Feb, 2009
Hi Mac,

Much better; you still have a </form> tag near the end of your form html. Hopefully taking this out will fix the problem.

Bob
mac 07 Feb, 2009
Hi Bob,
that was one of my mistakes, thank you.
i think ther are more 😢
the answer-mail is, that the marker witch checkboxes are aktiv is not shown.

i also want a text like this '...your message ist successful send to us' when the form is complet.
where is the right place for this message?

regards
mac
GreyHead 07 Feb, 2009
Hi Mac,

For the 'Thank you' message put this code in the OnSubmit After box:
<b>Danke! <br />Wir haben Ihr Anliegen erhalten und melden uns wie gewünscht bei Ihnen.</b>


For the checkboxes I suggest that you group them by giving them an array name
<table width="100%" border="0">
  <tbody>
    <tr>
      <td>
        <input type="checkbox" value="Dienstleistungskatalog Ja" name="checkbox[]" class="checklabel" /> 
        Dienstleistungskatalog
      </td>
      <td>
        <input class="checklabel" type="checkbox" value="Image/ Infopaket Ja" name="checkbox_2" /> 
        Image / Infopaket
      </td>
    </tr>
    <tr>
      <td><input type="checkbox" value="Brosch?re basisCHECK Ja" name="checkbox[]" class="checklabel" /> Informationsbrosch?re basisCHECK</td>
      <td><input type="checkbox" value="Fragenkatalog basisCHECK Ja" name="checkbox[]" class="checklabel" /> Fragenkatalog basisCHECK</td>
    </tr>
    <tr>
      <td>
        <input type="checkbox" value="Broschüre analyseCHECK Ja" name="checkbox[]" class="checklabel" />
         Informationsbroschüre analyseCHECK
      </td>
      <td>
        <input type="checkbox" value="Fragenkatalog analyseCHECK Ja" name="checkbox[]" class="checklabel" />
        Fragenkatalog analyseCHECK
      </td>
    </tr>
    <tr>
      <td>
        <input type="checkbox" value="Newsletter Ja" name="checkbox[]" class="checklabel" /> 
        Newsletter abonnieren
      </td>
      <td>
        <input type="checkbox" value="14-Tage-Demo-messSERVICE" name="checkbox[]" class="checklabel" />
        <strong>14 Tage Demo messSERVICE</strong>
      </td>
    </tr>
    <tr>
      <td>
        <input type="checkbox" value="KfW-KMU-Foerderprogramm" name="checkbox[]" class="checklabel" /> 
        KfW Sonderfonds Energieeffizienz
      </td> 
    </tr>
  </tbody>
</table>
This should give you all the checkbox answers in a single array.

Bob
mac 07 Feb, 2009
Hi Bob, thank you for your exercise patience!
I do'nt understand your answer how i must cover the checkboxes.

On my site / Kontakt there are other moduls positioned. When the form is submited this moduls clear away - why?

Best Regards
Mac
Max_admin 08 Feb, 2009
Hi Mac,

This is normal and expected, the URL must change, try to add a "redirect URL" (form URLs tab) to the link you like so the form goes to after submit!

Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
mac 09 Feb, 2009
Okay Max,
i understand.
my link from button 'kontakt' goes to the 'kontaktformular' chronoform component.
must i also have a module with the name 'kontaktformular'? Is this a special chronoform modul?

Regards
Mac
Max_admin 09 Feb, 2009
Hi Mac,

Sorry but I don't understand your question, can you show me your form some where and tell me what you don't like about and I will tell you about all possible solutions if any ?🙂

Gruesse,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
mac 10 Feb, 2009
Hi Max,
this is the website offline when you fill in the form, and forget something, the message will shown on top of the site, but the modules on the right and left clear out. also when the form is complete, the redirect is without modules on the right and left.

Thank you for helf.
mac
mac 11 Feb, 2009
Hi Max,
thank you very mutch for your help!!
😀 mac
Max_admin 11 Feb, 2009
No problems!🙂

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.