I am working with wordpress and I am trying to get this form to appear when you press a button
<div class="head">
<p><?php echo __('Tests pabeigts, lūdzu iesniedziet testu'); ?></p>
</div>
<script>
function do()
{
<?php echo do_shortcode( '[wpforms id="1995"]' ); ?>
}
</script>
<div class="content">
<button onclick="do()" class="btn btn-blue" type="submit">
<?php echo __('Iesniegt'); ?>
</button>
</div>
The function do()
is supposed to make a form appear after you press the Submit button, but it just returns results and I cant figure out why.