• Resolved saskiaherm

    (@saskiaherm)


    Hi, I have a simple snippet like:

    <div id="gvk_04" style="text-align: center;"></div>

    <p align="center"><button class="spw_button" onclick=spw_gvk_expl()>Show/Hide explanation</button></p>

    <script>

    function spw_gvk_expl() {

    var x = document.getElementById("gvk_04");

    if (x.innerHTML === "") {
    x.innerHTML = spw_gvk_expl_brd(4);
    } else {
    x.innerHTML = "";
    }
    }

    function spw_gvk_expl_brd(brd) {

    return
    Hi, this is the explanation of board ${brd}

    }
    </script>

    It is toggling between showing/hiding some explanation.

    Is it possible to pass the boardnumber (4 in the code above) as a parameter, so I can use the same code for all boards? Something like

    [hfcm id=”123″ brd = “4”]

    Kind regards,

    Saskia

    • This topic was modified 4 months ago by saskiaherm.

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

Viewing 1 replies (of 1 total)
  • Plugin Support 99robotsteam

    (@99robotsteam)

    Hi @saskiaherm,

    Unfortunately, our current shortcode implementation doesn’t support passing custom parameters like you’ve described. The shortcode only takes an ID, so something like [hfcm id=”123″ brd=”4″] isn’t possible with the existing functionality.

    Let us know if you have any other questions!

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