Form Help

TOPIC:

Create a Popup Thank You Message 2 years 2 weeks ago #228543

  • Eddy.vh's Avatar Topic Author
  • Eddy.vh
  • Away
  • Gold Breezer
  • Gold Breezer
  • Posts: 351
  • Karma: 3
  • Thanks: 57
Hello.

I would like to post a message in a popup after submitting a form. For that, I followed this short tutorial :
Strangely, it does not always work. Sometimes the popup is displayed, sometimes not ...
But sometimes it is also displayed by loading the page, while the form is not entered or submitted.

Following the tutorial procedure, so I have this code in the tab Scripts - SUBMITTED SCRIPT section:
function ff_myform_submitted(status, message)
{
    switch (status) {
        case FF_STATUS_OK:
           alert("Votre message à bien été transmis.\n \nNous vous en remercions et y répondrons le plus rapidement possible.");
           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_myform_submitted

How can I make sure the popup works?

Thanks for your help.

Please Log in or Create an account to join the conversation.

Create a Popup Thank You Message 2 years 2 weeks ago #228545

  • DarkoCujic's Avatar
  • DarkoCujic
  • Offline
  • Developer
  • Developer
  • Posts: 2154
  • Karma: 67
  • Thanks: 264
Hey,

well, alert is a basic browser function and it should work without a problem. If it doesn't work, then maybe your browser blocked pop-ups as a security measure (might be due to you testing it) or there's an error somewhere else.

Have you considered using a One Page Layout? It displays the thank you page in a nice modal pop-up. However, if you have any redirects, don't use it as it can't redirect after submission.

If you want, you can attach a link to your form here and I'll take a look.

Kind regards,
Darko
Satisfied with our support? PayPal tips
===========
Need to renew Pro Support? Buy Here!
===========
Satisfied? Consider a membership!
===========
Like us on Facebook
===========
Support Crosstec and get ALL EXTENSIONS and professional support for just $5. Here!

Please Log in or Create an account to join the conversation.

Create a Popup Thank You Message 2 years 2 weeks ago #228546

  • Eddy.vh's Avatar Topic Author
  • Eddy.vh
  • Away
  • Gold Breezer
  • Gold Breezer
  • Posts: 351
  • Karma: 3
  • Thanks: 57
Hi Darko.

Indeed, blocking popups, I had not thought! It seems that the authorization solved the problem.

I will however be interested in one page layout ...

I thank you for your quick and accurate response.

Have a nice day

Please Log in or Create an account to join the conversation.

Create a Popup Thank You Message 2 years 2 weeks ago #228547

  • DarkoCujic's Avatar
  • DarkoCujic
  • Offline
  • Developer
  • Developer
  • Posts: 2154
  • Karma: 67
  • Thanks: 264
Hey,

no problem :)Let us know should you need anything else.

Kind regards,
Darko
Satisfied with our support? PayPal tips
===========
Need to renew Pro Support? Buy Here!
===========
Satisfied? Consider a membership!
===========
Like us on Facebook
===========
Support Crosstec and get ALL EXTENSIONS and professional support for just $5. Here!

Please Log in or Create an account to join the conversation.

Create a Popup Thank You Message 2 years 2 weeks ago #228550

  • Eddy.vh's Avatar Topic Author
  • Eddy.vh
  • Away
  • Gold Breezer
  • Gold Breezer
  • Posts: 351
  • Karma: 3
  • Thanks: 57
Hi

The one page option seems well done.
How to customize the default Bootstrap theme?
The directory: media / breezingforms / themes-bootstrap does not contain a "Default" theme.

Thank you

Please Log in or Create an account to join the conversation.

Create a Popup Thank You Message 2 years 2 weeks ago #228553

  • DarkoCujic's Avatar
  • DarkoCujic
  • Offline
  • Developer
  • Developer
  • Posts: 2154
  • Karma: 67
  • Thanks: 264
Hey,

the default theme is the one that's picked up from your template. It's a combination of Bootstrap and your theme options.

You can simply add rules to your template custom CSS file.

Kind regards,
Darko
Satisfied with our support? PayPal tips
===========
Need to renew Pro Support? Buy Here!
===========
Satisfied? Consider a membership!
===========
Like us on Facebook
===========
Support Crosstec and get ALL EXTENSIONS and professional support for just $5. Here!

Please Log in or Create an account to join the conversation.

Moderators: ForumSupport
Time to create page: 0.045 seconds

July Sale!

Discounts for all of our extensions + support. Ending July 31st!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!