• Resolved Graicifyd

    (@graicifyd)


    I would like to have an HTML field that has a woocommerce shortcode in it…the one I have currently outputs the shortcode just as text and not the product.

    Please can you help with this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @graicifyd

    The plugin does not support third-party shortcodes. The forms are rendered on the client-side, and we cannot ensure the third-party code does not break the form structure.

    The alternative would be to insert the third-party shortcode into the page’s content and then move the resulting HTML tags into the form.

    For example, if you insert the third-party shortcode into the page’s content as follows:

    <div class="third-party-shortcode" style="display:none;">[shortcode-here]</div>

    You can insert an “HTML Content” field in the form with the following piece of code as its content:

    <div class="display-shortcode-result-here"></div>
    <script>
    fbuilderjQuery(document).one('showHideDepEvent', function(){
    jQuery('.display-shortcode-result-here').html(jQuery('.third-party-shortcode').html());
    });
    </script>

    Best regards.

    Thread Starter Graicifyd

    (@graicifyd)

    Thank you so much.

    I’ll try it out.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘use shortcode in an HTML field’ is closed to new replies.