Filter multiple dynamic dropdown lists within one form using the Smart Grid-layout extension for Contact Form 7

Try this instead, combine all 3 functions into a single one, add_filter(‘cf7sg_dynamic_dropdown_custom_options’, ‘filter_options’,10,3); function filter_options($options, $field_name, $form_key){ //field ‘dynamic_select-461’ if($form_key == ‘bez-nazvu’ && $field_name == ‘dynamic_select-461’) { $options = array(); //get your terms $terms = get_the_terms( $post->ID , ‘strava’ ); if( ! empty( $terms ) && ! is_wp_error( $term_args ) ) { foreach( $terms as … Read more

Contact Form 7 Conditional redirect

I got an answer. We need to grab the code inside the Event Listener code like this: <script type=”text/javascript”> document.addEventListener( ‘wpcf7submit’, function( event ) { inputs = event.detail.inputs; inputs.forEach( function(el) { if ( el.name == “menu-52” ) { if ( el.value == “Below $10,000” ) { location.href = “https://www.facebook.com”; } else if ( el.value == … Read more

How to redirect a Link to a new tab in contact form 7?

You got it right, <a target=”_blank” href=”https://google.com”>Google</a> The _blank directive opens the link in a New window/tab depending on the browser setting. This is only way to achieve your redirect in a new tab, but is entirely dependent on the user’s browser setting over which you have no control. Anyhow, it’s not recommended to open … Read more