Hej,
I am looking for a solution to trigger/show an external Javascript element when clicking on a floating button and came accross Buttonizer now.

However, the code that needs to be inserted would look something like this and I am not sure whether it would work with buttonizer?

<html>
<head>

</head>
<body>

<div class="baufilead_zinstableau"></div>

<script type="text/javascript" src="https://www.baufi-lead.de/baufilead/partner/FN2Ao8JfpZDvUdtDJXeu/imports.js"></script>

</body>
</html>

Would be awesome to get some feedback/help on this!
Thank,
Raphaela

  • James replied to this.
  • Hi DigiRapha ,

    The button action "Javascript function" runs Javascript functions.
    So something like this:

    console.log("Hello World");

    or

    runThisFunction();

    @Jasper has taken a look at the script you sent and found a function in the script that you could use.
    Copy and paste this into your button with the button action, Javascript function:

    bl.bootstrap.DialogInitializer.oeffneDialogDirekt(bl.gui.dialoge.Dialog.NEBENKOSTEN_RECHNER)

    Then place the script into the footer of your site.

    <script type="text/javascript" src="https://www.baufi-lead.de/baufilead/partner/FN2Ao8JfpZDvUdtDJXeu/imports.js"></script>

    This should now open the poup after clicking on the button.

    Please let me know if this works for you! 😄

    Hi DigiRapha ,

    Welcome to the Buttonizer forums! 🥳

    Could you perhaps explain to us as to what does this script do?
    Do you have a specific function that you would like to use in the script?

    Buttonizer has a button action called Javascript function.
    With Javascript function you could run functions on the click of the button.

    Here's a topic in our knowledge base about Javascript function
    https://community.buttonizer.pro/knowledgebase/34-how-to-use-javascript-click-action

    Please let us know what you would like to do with the script! 😄

    So in fact I purchased it now and tried and tadaa it does not work. It says "expected expression, got '<'
    I cannot twerk Javascript code so I will then try to get the money back if there's no support.

      Hi DigiRapha ,

      The button action "Javascript function" runs Javascript functions.
      So something like this:

      console.log("Hello World");

      or

      runThisFunction();

      @Jasper has taken a look at the script you sent and found a function in the script that you could use.
      Copy and paste this into your button with the button action, Javascript function:

      bl.bootstrap.DialogInitializer.oeffneDialogDirekt(bl.gui.dialoge.Dialog.NEBENKOSTEN_RECHNER)

      Then place the script into the footer of your site.

      <script type="text/javascript" src="https://www.baufi-lead.de/baufilead/partner/FN2Ao8JfpZDvUdtDJXeu/imports.js"></script>

      This should now open the poup after clicking on the button.

      Please let me know if this works for you! 😄

        7 days later

        James and Jasper: wow thank you that works!! I am still looking for one function that does not (I sent you an e-mail about this, but in general the code definitely works like this in buttonizer. Thanks again, amazing support :-)!!

        5 days later
        James changed the title to Baufi-lead popups .