• Resolved Florian

    (@pictibe)


    Hi,

    I bought Pro version but no default selection possible?

    I need a standard value for all sites and only if the admin select another field it should be used.

    I upload the pro version but nothing changed?

    Florian

Viewing 1 replies (of 1 total)
  • Plugin Author KrishaWeb

    (@krishaweb)

    Hello @pictibe

    You can use the below filter to keep one contact form selected by default.

    add_filter( 'acf/prepare_field/type=acf_cf7', function( $field ) {
    	if ( is_admin() && empty( $field['value'] ) ) {
    		$field['value'] = '586'; // Contact form 7 ID which you wish to keep default selected
    	}
    	return $field;
    } );

    Let us know once you try this.

    Thanks

    • This reply was modified 3 years, 7 months ago by KrishaWeb.
    • This reply was modified 3 years, 7 months ago by KrishaWeb.
Viewing 1 replies (of 1 total)
  • The topic ‘Buy Pro version but no default selection possible?’ is closed to new replies.