• Sofia

    (@affiliatedachs)


    Hi,

    is it possible to create a form with Kadence Block Pro and then adjust parameters:

    action=”” in form tag
    name=”” in input fields

    The reason is, that I would like to have all the styles options of Kadence theme. But I would like to handle the form by the third-party script via post action. A third-party script controls the whole process of the form submission in my case.

    Thank you!

Viewing 1 replies (of 1 total)
  • Plugin Support Gilbert Hernandez

    (@ghernkadence)

    Hello @affiliatedachs

    You could try adding a PHP snippet to change the action and name of the forms. For example, the following code adds javascript to change the action to ‘example.php’, and the name to ‘myname’.

    add_action( ‘wp_footer’, function() {

          ?>

    ? ? ? ? ?<script >

                jQuery(document).ready(function($) {

    ? ? ? ? ? ? ? ?$(‘.kb-form’).attr(‘action’, ‘example.php’).attr(‘name’, ‘myname’);

                });

             </script>

          <?php

    });

Viewing 1 replies (of 1 total)
  • The topic ‘Changing action and name parameter of the form’ is closed to new replies.