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, 5 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, 5 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: 114
  • Karma: 5
  • Page:
  • 1
Moderators: TheMuffinMan, ForumSupport
Time to create page: 0.38 seconds

About

Crosstec GmbH & Co. KG

Bergisch-Gladbacher-Str. 829

51069 Cologne, Germany