Submitted Script changed

  • tas
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 25
  • Thank you received: 0

tas created the topic: Submitted Script changed

After changes form fields state submitted script code reset default.
Is it a bug?
#132575
  • Posts: 6982
  • Karma: 187
  • Thank you received: 628

chrisal replied the topic: Submitted Script changed

Hello Tas,


have you changed the 'Last page is Thank you page' option? This will reset the submitted script.

Which Joomla! and BreezingForms version do you use exactly and what have you changed exactly?


regards
Chris

Regards,
Christian

===============================================
Satisfied? Consider a membership!
===============================================
Like us on Facebook
===============================================
Follow us on Twitter
===============================================
#132662
  • tas
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 25
  • Thank you received: 0

tas replied the topic: Submitted Script changed

No, i just changed fields opions (value for example)
Joomla 3.3.6
BF 906
#132676
  • tas
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 25
  • Thank you received: 0

tas replied the topic: Submitted Script changed

Custom Submitted Script becomes

function ff_FeedBack_submitted(status, message){if(status==0){ff_switchpage(2);}else{alert(message);}}
#132678
  • Posts: 6982
  • Karma: 187
  • Thank you received: 628

chrisal replied the topic: Submitted Script changed

Hello again,


but the options is activated? Each time you save the form and this option is activated - it will overwrite the old code. To fix this - deactivate the Last page is thank you page option and combine both scripts. This could look like this:
function ff_FeedBack_submitted(status, message)
{
    switch (status) {
        case FF_STATUS_OK:
           ff_switchpage(2);

//Your code here

           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
}


If you have problems with it - just send me the script you want to use.



regards
Chris

Regards,
Christian

===============================================
Satisfied? Consider a membership!
===============================================
Like us on Facebook
===============================================
Follow us on Twitter
===============================================
#132687
  • tas
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 25
  • Thank you received: 0

tas replied the topic: Submitted Script changed

I think it is wrong idea to overwrite submitted script with default script
#132740
Moderators: ForumSupporttomeperica
Time to create page: 0.066 seconds

New Support System

Dear Customers,

Users with active subscription have support priority which will be dona via ServiceDesk (My Account > Raise a ticket).
FREE Support topics will be answered when AND if there is time.

You can check support guidelines here : here

Regards,
Crosstec 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

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€

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!

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