• Resolved milesgreen

    (@milesgreen)


    I have a Jotform (www.jotform.com) that pops up in a lightbox.

    I can add the script to the HTML editors in WordPress, but I was wondering if it’s possible to add the script to MaxButtons?

    This is what I want to add:

    <script src=”https://form.jotformeu.com/static/feedback2.js&#8221; type=”text/javascript”></script><script type=”text/javascript”>
    var JFL_93094515649365 = new JotformFeedback({
    formId: ‘93094515649365’,
    base: ‘https://form.jotformeu.com/&#8217;,
    windowTitle: ‘Expert Labels Quote Form’,
    background: ‘#FFA500’,
    fontColor: ‘#FFFFFF’,
    type: ‘1’,
    height: 600,
    width: 500,
    openOnLoad: false,
    iframeParameters: {
    ‘howCan’:’Some samples’
    }
    });
    </script>

    Get Samples

    Thank you!

Viewing 1 replies (of 1 total)
  • Plugin Author Bas Schuiling

    (@basszje)

    Hi,

    There are two ways. Put that Javascript in an own function and you can call it via the URL field like ‘ javascript:myFunction(); ‘ . The PRO version has an own setting for this, which is a bit easier.

    Second way (better way) is if the form plugin supports triggers you can add the trigger to the button.

    If this topic is correct you can add that lightbox-xxx class to maxbuttons in the button editor via advanced -> extra classes

Viewing 1 replies (of 1 total)

The topic ‘Can I add Javascripts to buttons?’ is closed to new replies.