× Form Help

Create a Popup Thank You Message

  • Eddy.vh
  • Eddy.vh's Avatar Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 295
  • Karma: 1
  • Thank you received: 41

Eddy.vh created the topic: Create a Popup Thank You Message

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.
#228543
  • Posts: 2154
  • Karma: 67
  • Thank you received: 264

DarkoCujic replied the topic: Create a Popup Thank You Message

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!
#228545
  • Eddy.vh
  • Eddy.vh's Avatar Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 295
  • Karma: 1
  • Thank you received: 41

Eddy.vh replied the topic: Create a Popup Thank You Message

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
#228546
  • Posts: 2154
  • Karma: 67
  • Thank you received: 264

DarkoCujic replied the topic: Create a Popup Thank You Message

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!
#228547
  • Eddy.vh
  • Eddy.vh's Avatar Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
  • Posts: 295
  • Karma: 1
  • Thank you received: 41

Eddy.vh replied the topic: Create a Popup Thank You Message

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
#228550
  • Posts: 2154
  • Karma: 67
  • Thank you received: 264

DarkoCujic replied the topic: Create a Popup Thank You Message

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!
#228553
Moderators: ForumSupporttomeperica
Time to create page: 0.076 seconds

New Icon Packs Category!

Crosstec is now offering icon packs.

If you are a paying subscriber, icon packs are automatically added to your account.

Check out our icon packs page!

Live Support Chat Opened!

Join our Discord chat here to receive live support and talk directly to the team!

Summer Sale!

50% discount on all of our extension subscription plans, templates and icon packs!

Get Your Subscription Here

News and Updates

Get informed about new downloads, updates and more in our News and Updates newsletter.

All Extensions Subscription

Get 1 year access to all of our current and future products and 1 year of professional support -- 99 for just 49! (Summer Sale)

No support per domain or website installation limits! Includes all of our current and future Joomla!® extensions, Joomla!® templates for the duration of your membership. This means, by purchasing an All Extensions Subscription you'll have it all covered!

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!

Live Support Chat Opened!

Join our Discord chat here to receive live support and talk directly to the team!

Community Reward

Help us to create new extensions and plugins! With only $5 you help us a lot and get unlimited download access to all of our products, professional support and even more. Get your reward now!

Read More Here