Support » Plugin: Smart Forms - when you need more than just a contact form » Using as a calculator: turn off the javascipt message?

  • Resolved pcnoggin

    (@pcnoggin)


    I wanted to add a submit button because it seemed better than telling people to “click outside of the boxes for the calculations to work”.

    I also wanted to make a couple of required fields.

    I only have two options for buttons and if I use the submit button, I get the javascript alert, “Information submitted successfully.”

    Any way to turn that off?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter pcnoggin

    (@pcnoggin)

    I figured it out.

    Placing an empty function overrides the alert. I created a snipped and pasted under..

    //Here you can put code that you want to be executed before the form is submitted
    window.alert = function() {};

    I still have a question though — I plan to make more calculators using your forms that won’t be storing any data. Is there a cleaner way to go about this?

    Plugin Author EDGARROJAS

    (@edgarrojas)

    Hello!

    Could you make a different thread for your other question please? Please include detail of what you want to do (like do you want to create a field that does calculations but it is not saved in the database?)

    Thread Starter pcnoggin

    (@pcnoggin)

    Will do.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.