Description

A filter used to Show Values on Dropdown, Checkboxes and Multiple Choice fields inside the form builder.

Parameters

$show_value
(bool) Determines whether the Show Values will display, default is true (to show).

Source

wpforms/includes/class-frontend.php

More Information

The wpforms_fields_show_options_setting filter can be used to Show Values for select, radio and dropdown fields.

Example

/**
 * Show value field for radio, checkbox and dropdown fields on all forms.
 *
 * @link   https://wpforms.com/developers/wpforms_fields_show_options_setting/
 *
 * @param  bool $show_value Default is false.
 *
 * @return bool
 */

add_action( 'wpforms_fields_show_options_setting', '__return_true' );

Snippet Reference: How to Add Field Values for Dropdown, Checkboxes, and Multiple Choice Fields