☰
Documentation

Dynamic Labels filters

Dynamic Labels has two filters that change which field types appear in the Field Mappings setting. Add them to a code snippets plugin or the functions.php of your theme.

gravitywp_dynamic_labels_mapping_field_types

The field types of the dynamic form whose label and description can be mapped. HTML fields are always available for their content.

Default: text, number, textarea, email, hidden, phone, name, radio, select, checkbox, list, multi_choice, time, date, multiselect.

add_filter( 'gravitywp_dynamic_labels_mapping_field_types', function ( $types ) {
$types[] = 'consent';
return $types;
} );

gravitywp_dynamic_labels_source_form_mapping_field_types

The field types of the source form that can provide a value.

Default: text, textarea.

add_filter( 'gravitywp_dynamic_labels_source_form_mapping_field_types', function ( $types ) {
$types[] = 'select';
return $types;
} );

Labels use the stored value of the source field. For a Drop Down field that is the choice value, so give choices the text you want to show as their value.

gravitywp_dynamic_labels_mapping_field_types gravitywp_dynamic_labels_source_form_mapping_field_types
Proudly powered by WordPress