Welcome, Guest

Back Button, asks for fields validation
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Back Button, asks for fields validation

Back Button, asks for fields validation 2 years, 3 months ago #9727

Howdy again,

I am breaking down my form in different pages, I'm using Quick Mode.

The back button checks for validation:

Please enter How did you hear about us?
Please enter the Animation School to attended, if negative... enter "none"
Please enter a Date Of Graduation
Please enter the position you are applying for
Please enter the years of experience



Is the back button supposed to check for validation?

If so, can I only display the NEXT button and not the back button?


Thanks for your time!
  • pochat
  • OFFLINE
  • Fresh Boarder
  • Posts: 9
  • Karma: 0

Re: Back Button, asks for fields validation 2 years, 3 months ago #9743

Hi,

it can be deactivated with a little hack. Open the file administrator/components/com_facileforms/libraries/crosstec/classes/BFQuickMode.php

Find around line 987 this:

echo '<input class="bfPrevButton'.$this->fadingClass.'" type="submit" onclick="ff_validate_prevpage(this, \'click\');populateSummarizers();" value="'.htmlentities(trim($this->rootMdata['pagingPrevLabel']), ENT_QUOTES, 'UTF-8').'"/>'."\n";


and change to this


echo '<input class="bfPrevButton'.$this->fadingClass.'" type="submit" onclick="populateSummarizers();" value="'.htmlentities(trim($this->rootMdata['pagingPrevLabel']), ENT_QUOTES, 'UTF-8').'"/>'."\n";


Then the back-validation is gone.
===============================================
Satisfied?
Consider a membership!
===============================================
Like us on Facebook
===============================================
Follow us on Twitter
===============================================

Re: Back Button, asks for fields validation 2 years, 2 months ago #9960

Hello there, I just tried the suggested change and now the page is not navigating to the previous page. I've re-confirmed that I changed the required section (it was line 1082 in my file).

Thanks,
  • tsem
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Karma: 0

Re: Back Button, asks for fields validation 1 year, 10 months ago #12885

Hi,

I had this problem too. I tried suggested hack but indeed no action at all anymore. After some investigation next hack works:

Open the file: administrator/components/com_facileforms/libraries/crosstec/classes/BFQuickMode.php with me @line 1180

changed original code:

echo '<input class="bfPrevButton'.$this->fadingClass.'" type="submit" onclick="ff_validate_prevpage(this, \'click\');populateSummarizers();" value="'.htmlentities(trim($this->rootMdata['pagingPrevLabel']), ENT_QUOTES, 'UTF-8').'"/>'."\n";


into:
echo '<button class="bfPrevButton'.$this->fadingClass.'" type="submit" onclick="if(ff_currentpage>1){ff_switchpage(ff_currentpage-1);}populateSummarizers();" value="'.htmlentities(trim($this->rootMdata['pagingPrevLabel']), ENT_QUOTES, 'UTF-8').'"><span>'.htmlentities(trim($this->rootMdata['pagingPrevLabel']), ENT_QUOTES, 'UTF-8').'</span></button>'."\n";


Regards
Benno
  • klipper
  • OFFLINE
  • Fresh Boarder
  • Posts: 18
  • Karma: 2

Re: Back Button, asks for fields validation 1 year, 1 month ago #23377

FYI The location of this file has changed. It is now found at:


administrator/components/com_breezingforms/libraries/crosstec/classes/BFQuickMode.php
  • davshirley
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Karma: 0

Re: Back Button, asks for fields validation 1 year, 1 month ago #23378

FYI, the file location has changed. It is now at:


administrator/components/com_breezingforms/libraries/crosstec/classes/BFQuickMode.php
  • davshirley
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
  • Karma: 0
  • Page:
  • 1
Moderators: TheMuffinMan, ForumSupport
Time to create page: 0.44 seconds

About

Crosstec GmbH & Co. KG

Bergisch-Gladbacher-Str. 829

51069 Cologne, Germany