Skip to content

Form Label Setting Defaults #2704

@curtismchale

Description

@curtismchale

Issue

Allow users to adjust the form label placement for all future forms.

Should look something like this.

<?php
// Put this in your theme's functions.php or a functionality plugin
add_filter( 'gform_form_settings_defaults', function( $defaults ) {
    // Options: 'top_label', 'left_label', 'right_label', 'hidden_label'
    $defaults['labelPlacement'] = 'top_label';
    return $defaults;
});

We should probably skip hidden_label as an option because that would default all future labels to hidden which is not what most users would want.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    To-do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions