Welcome, Guest

I need a submit button WITHOUT validating the form
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: I need a submit button WITHOUT validating the form

I need a submit button WITHOUT validating the form 1 year, 9 months ago #16253

Hello

I am currently working on my form and it would be nice to have script to submit a form WITHOUT the validation.

I am tired of filling in data in a big form just to test if my database actually receives something.

So it's just for tesing purposes.

Can anyone tell me how the change this script to remove de VALIDATE function? Or is there another way?

function ff_validate_submit(element, action)
{
if(typeof bfUseErrorAlerts != 'undefined'){
JQuery(".bfErrorMessage").html('');
JQuery(".bfErrorMessage").css("display","none");
}
error = ff_validation(0);
if (error != '') {

if(typeof bfUseErrorAlerts == 'undefined'){
alert(error);
} else {
bfShowErrors(error);
}
ff_validationFocus();
} else
ff_submitForm();
} // ff_validate_submit

Thanks alot
  • Ironhand
  • OFFLINE
  • Fresh Boarder
  • Posts: 12
  • Karma: 0

Re: I need a submit button WITHOUT validating the form 1 year, 8 months ago #16779

Hi IronHand!

should be simple...

select your submit-button and go to properties..then go to scripts->action->special...and generate the script..
after
case 'click':

simply use "ff_submitForm();" if you don't want to validate your form and just submit..or use "ff_validate_submit();" and it validates your form before submit..

matthias
  • goshmac
  • OFFLINE
  • Expert Boarder
  • Posts: 113
  • Karma: 5
  • Page:
  • 1
Moderators: TheMuffinMan, ForumSupport
Time to create page: 1.03 seconds

Facebook Discount - 40% Off!

Fans of our Facebook page here are entitled to get a 1-year-subscription for the price of a 6-months!

Steps to take:

  • Become a fan on Facebook (Like) here
  • Purchase a 6-months-subscription from here
  • Write a quick email to This email address is being protected from spambots. You need JavaScript enabled to view it. with your username and prove of your like and we'll upgrade to the 1-year-subscription

Joomla!® Forms Discount - 40% Off!

Already purchased a forms extension from a different vendor but your requirements changed and now you need a forms extension that is capable of more than just the standards? We help you to keep the costs for a change under control: Get a 40% discount on our professional membership plan! -- meaning timely unlimited access to all current and future commercial extensions, breezingforms themes & apps and Joomla!® templates at crosstec.de, including 1 year of support -- without any website limitations -- Just prove that you previously purchased another forms extension for Joomla!® from a different vendor and you are qualified.

Steps to take:

  • Purchase a 1-year-subscription from here
  • Write a quick email to This email address is being protected from spambots. You need JavaScript enabled to view it. with your username and prove of the purchase for the other form vendor and we'll upgrade to the professional-subscription

About

Crosstec GmbH & Co. KG

Bergisch-Gladbacher-Str. 829

51069 Cologne, Germany

Imprint