Viewing 1 replies (of 1 total)
  • Plugin Contributor hugreed

    (@hugreed)

    Hi, after update 1.2.0 you can try this:

    add_filter( 'jet-form-builder/render/date-field', function ( $field_args, $render_instance ) {
        if ( 'current_date' === $field_args['name'] ) {
            $field_args['default'] = date( 'Y-m-d' );
        }
        return $field_args;
    }, 10, 2 );
Viewing 1 replies (of 1 total)
  • The topic ‘Set Default Value as today’s Date’ is closed to new replies.