Form submitting info when I press 'Enter' in the textarea field

Permalink Browser Info Environment
Hi

I'm unable to press 'Enter' for a line break in the message field using Formidable contact form. Instead of making a line break, the form submits the data.

What's causing this problem? Am I doing something wrong or is it a bug?

Type: Discussion
Status: New
lundco99
View Replies:
DeWebmakers replied on at Permalink Reply
DeWebmakers
Hi,

This is a jquery bug.
You can temporary work around this by opening the formidable.js in the folder js of the package.
Remove the following code:
$(document).keypress(function(e) {
 if(e.which == 13) {
  e.preventDefault();
  var formObj = $(document.activeElement).parents('form[name^="ff_"]');
  if (formObj)
    $(formObj).find('input[type=button].submit').trigger('click');   
 }
});


I'll fix this in the next update.

Best,

Corretje

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.