FrontElf Fields Bridge for Contact Form 7 provides an ACF and SCF integration for Contact
Form 7. It adds ACF field groups directly to each Contact Form 7 form editor.
The plugin adds the Contact Form 7 form post type to the ACF location rules.
Field groups assigned to that post type are shown in a dedicated tab in the
Contact Form 7 editor and saved together with the form. This allows developers
to store editable metadata and settings for each form.
The plugin supports Advanced Custom Fields and Secure Custom Fields. Contact
Form 7 and one of those field plugins must be installed and active.
After activating the plugin, a new Contact Form (CF7) option appears in the
ACF or SCF field group location rules under Post Type.
Post Type is equal to Contact Form (CF7).Fields for form tab.If no matching field groups exist, the Fields for form tab provides a button
to create one.
Each saved Contact Form 7 form has a numeric WordPress post ID. The plugin shows
this ID above the fields in the Fields for form tab.
Use the form ID as the second argument of get_field():
$value = get_field('field_name', 123);
Escape the returned value according to its output context:
echo esc_html(get_field('field_name', 123));