Quantcast
Channel: Toolset » All Posts
Viewing all articles
Browse latest Browse all 20145

Reply To: [Waiting for user confirmation] Required Select Field and Conditional Display Group

$
0
0

Thank you for your answer. i use the version 1.2.5 of Cred

i have added the following js but nothing happens. The Select Field "wpcf-abholort-treffpunkt" should be required if in the Select-Field "wpcf-abholort-bitte-auswaehlen" "Flughafen Wien-Schwechat" is selected.

jQuery(function( $ ) {
 
  // Validation
  $( 'form' ).submit( function() {
 
    // content
    if ( $( "select[name='wpcf-abholort-bitte-auswaehlen']" ).val() == 'Flughafen Wien-Schwechat' ) {
        $( "select[name='wpcf-abholort-treffpunkt']" ).focus();
        alert( "The content is required" );
        return false;
    }

  } );
   
} );


Viewing all articles
Browse latest Browse all 20145

Trending Articles