TOPIC:

Captcha with questions 11 months 2 weeks ago #237172

  • sciencemkt's Avatar Topic Author
  • sciencemkt
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 132
  • Thanks: 0
Hello,

Is it possible to create a sum captcha ?, for example 3 + 4 = write the answer

Thank you.
Alejandro Cobo
Neuromarketing consultant

==============================================
Like us on Facebook:
www.facebook.com/AlejandroCobo.Neuromarketing
==============================================
Blog:
www.alejandrocobo.com
==============================================

Please Log in or Create an account to join the conversation.

Captcha with questions 11 months 2 weeks ago #237175

  • MarioPuco's Avatar
  • MarioPuco
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 5958
  • Karma: 119
  • Thanks: 554

Please Log in or Create an account to join the conversation.

Captcha with questions 11 months 2 weeks ago #237184

  • sciencemkt's Avatar Topic Author
  • sciencemkt
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 132
  • Thanks: 0
Thank you for the quick response.

I have installed it and I am doing tests and it works fine, but if I write the correct answer and some other letters I consider it valid.

For example:

four - four = 0
but if I write 0fgfg, it is considered valid.

Is there a way to solve this?

Thank you.
Alejandro Cobo
Neuromarketing consultant

==============================================
Like us on Facebook:
www.facebook.com/AlejandroCobo.Neuromarketing
==============================================
Blog:
www.alejandrocobo.com
==============================================

Please Log in or Create an account to join the conversation.

Captcha with questions 11 months 2 weeks ago #237185

  • MarioPuco's Avatar
  • MarioPuco
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 5958
  • Karma: 119
  • Thanks: 554
Hi,

Please try to replace this inside your What is the result? element :
I basically added a ff:_integer validation to the existing script :
function ff_answer_validation(element, message)
{
        var regex = /(^-?\d\d*$)/;
    var myreturn = '';
    if (regex.test(element.value)) {
        JQuery.ajaxSetup({async:false});
        JQuery.post('index.php', { option: 'com_breezingforms', ff_form: ff_processor.form, Itemid: 0, format: 'html', answer: element.value }, function(data){ if( data != '1' ){ message == '' ? myreturn = 'Please answer the question correctly!' : myreturn = message; } } );
    } else {
        myreturn = 'The answer must be a number.';
    }
    return myreturn;
} // ff_answer_validation

Regards,
Mario

Please Log in or Create an account to join the conversation.

Captcha with questions 11 months 2 weeks ago #237188

  • sciencemkt's Avatar Topic Author
  • sciencemkt
  • Offline
  • Senior Breezer
  • Senior Breezer
  • Posts: 132
  • Thanks: 0
Thanks, it works perfectly.

A greeting.
Alejandro Cobo
Neuromarketing consultant

==============================================
Like us on Facebook:
www.facebook.com/AlejandroCobo.Neuromarketing
==============================================
Blog:
www.alejandrocobo.com
==============================================

Please Log in or Create an account to join the conversation.

Captcha with questions 11 months 2 weeks ago #237202

  • MarioPuco's Avatar
  • MarioPuco
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 5958
  • Karma: 119
  • Thanks: 554
Hi,

Great !
Glad it's working.

If you have any other questions, let me know.

Regards,
Mario

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Moderators: ForumSupport
Time to create page: 0.050 seconds

Summer Sale!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!