Welcome, Guest

validate submit und seitenwechsel
(1 viewing) (1) Guest

TOPIC: validate submit und seitenwechsel

validate submit und seitenwechsel 2 years, 10 months ago #6683

ich möchte gerne eine Danke-Seite als Seite 2 in mein Formular einbauen.
gibt es sowas wie "validat_submit und page2" ?

Oder hätte evtl. jemand einen Code?
besten dank!
  • Hinzmann
  • OFFLINE
  • Junior Boarder
  • Posts: 24
  • Karma: 0
Last Edit: 2 years, 10 months ago by Hinzmann.

Re:validate submit und seitenwechsel 2 years, 10 months ago #6687

Hi,

das wäre ff_validate_nextpage, das validiert die aktuelle seite und springt zur nächsten.
  • TheMuffinMan

Re:validate submit und seitenwechsel 2 years, 10 months ago #6689

Seite 1 = Feebnback Form inkl. Submit Button
Seite 2 = Danke Seite

Wenn ich dem Submitbutton auf seine 1 ff_validate_nextpage gebe, wird der Formularinhalt der Seite 1 versendet?
  • Hinzmann
  • OFFLINE
  • Junior Boarder
  • Posts: 24
  • Karma: 0

Re:validate submit und seitenwechsel 2 years, 10 months ago #6690

achso, deine 2. seite ist die dankesseite? dachte da kämen noch mehr formularfelder. also im grunde, beantworte ich deine letzte frage mit ja

da du aber eine dankesseite erstellt hast, lässt du wie zuvor ff_validate_submit und in den formulareinstellungen wählst du das skripte tab.
dort wählst du im "übermittlungsskript" => "spezial" und klickst auf "Rahmencode erzeugen".

Dann fügst Du im Click-Case das hier ein:

ff_switchpage(2);


Das Prozedere ist auch in den EasyMode videos beschrieben, recht am Ende.

www.crosstec.de/breezingforms-easymode-video.html
  • TheMuffinMan

Re:validate submit und seitenwechsel 2 years, 10 months ago #6692

Hallo MuffinMan,
danke für die schnelle Antwort.

Im Prinzip hab ich es verstanden aber wenn ich den Rahmencode erzeuge, kommt folgendes:

--------------------------------------------------------------------------------------------------

function ff_AnfrageFormular_submitted(status, message)
{
switch (status) {
case FF_STATUS_OK:
// do whatever desired on success
break;
case FF_STATUS_UNPUBLISHED:
case FF_STATUS_SAVERECORD_FAILED:
case FF_STATUS_SAVESUBRECORD_FAILED:
case FF_STATUS_UPLOAD_FAILED:
case FF_STATUS_ATTACHMENT_FAILED:
case FF_STATUS_SENDMAIL_FAILED:
default:
alert(message);
} // switch
} // ff_AnfrageFormular_submitted

-----------------------------------------------------------------------
Darf ich nun fragen, wo genau ich ff_switchpage(2) eintragen soll?
Oder hab ich etwas falsch gemacht?
  • Hinzmann
  • OFFLINE
  • Junior Boarder
  • Posts: 24
  • Karma: 0
Last Edit: 2 years, 10 months ago by Hinzmann.

Re:validate submit und seitenwechsel 2 years, 10 months ago #6693

Alles super, jetzt nur noch ff_switchpage eintrage, dass es so aussieht:

function ff_AnfrageFormular_submitted(status, message)
{
switch (status) {
case FF_STATUS_OK:
 ff_switchpage(2);
break;
case FF_STATUS_UNPUBLISHED:
case FF_STATUS_SAVERECORD_FAILED:
case FF_STATUS_SAVESUBRECORD_FAILED:
case FF_STATUS_UPLOAD_FAILED:
case FF_STATUS_ATTACHMENT_FAILED:
case FF_STATUS_SENDMAIL_FAILED:
default:
alert(message);
} // switch
} // ff_AnfrageFormular_submitted
  • TheMuffinMan
Moderators: TheMuffinMan, ForumSupport
Time to create page: 0.37 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