Use action hook wpda_before_simple_form to add HTML and JavaScript before a data entry form. Argument $self contains a reference to your simple form instance, which allows you to interact with your data entry form through public members and methods.
function myform_elements( $self ) {
// Add you HTML and JavaScript here...
}
add_action( 'wpda_before_simple_form', 'myform_elements', 10, 1 );
I can’t use WPDA_BEFORE_SIMPLE_FORM. Nothing happens when I send the data of the form created with the form builder. I entered the code function myform_elements( $self ) {
// Add you HTML and JavaScript here…
}
add_action( ‘wpda_before_simple_form’, ‘myform_elements’, 10, 1 ); with a short code, on the same page that hosts the form shortcode but I don’t get any results. Am I doing something wrong?
Hi Andrea,
Could you send us your full code via Contact?
Please also send us how you’ve added the snippet to your site. We’ll wait for your email!