Support » Plugin: Post My CF7 Form » map checkbox to ACF checkbox

  • Resolved robertdrost

    (@robertdrost)


    Hello,

    first of all, thank you for the great plugin!

    I mapped a single CF7 checkbox to an “advanced custom fields” checkbox field.
    By default, the CF7 checkbox is not checked. Regardless of whether the user then checks the checkbox or not, it unfortunately always arrives checked in the acf field in the backend.
    The two checkboxes seem to be linked because, if I rename the CF7 checkbox, it no longer has any influence on the acf field in the backend.

    It would be great if you had a solution for my problem.

    Thank you!

    Robert

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Aurovrata Venet

    (@aurovrata)

    HI Robert,

    unfortunately ACF plugin is not fully compatible with this plugin. ACF uses custom formats for storing field values and other users have reported issues with ACF fields not being populated properly.

    This plugin was designed to store submitted fields into the post fields using the WordPress core functionality.

    If you need to get your value stored according to the format ACF expects it, then I suggest you use the custom filter and programmatically format the value.

    I develop plugin functionality based on my project requirements funded by my clients. I have never had to use ACF.

    If a project funds this functionality in the future, I will make ACF compatible.

    Hi,
    I can understand that well. I’ll try my luck with the custom filters.
    Thank you very much for the support and the great plugin!
    Robert

    Plugin Author Aurovrata Venet

    (@aurovrata)

    I can understand that well.

    sooper! If you would like to contribute to this plugin and help make ACF more compatible, then may I invite you to collaborate on the GitHub repo ?

    I’ll try my luck with the custom filters.

    if you manage to work out the formats used by ACF, then I would suggest you write a set of functions to format various ACF fields, and we can then hook these functions into the plugin mapping process so others can leverage your effort. What do you think?

    Hi,

    in fact, your plugin already works very well with ACF. Text inputs, textareas, url fields, custom taxonomies, … are entered correctly.

    I will let you know when I find a solution for the checkboxes.

    Robert

    Plugin Author Aurovrata Venet

    (@aurovrata)

    I will let you know when I find a solution for the checkboxes.

    cool!

    Hello,
    I actually solved it: in ACF you normally define the name and slug for a checkbox like that: option1 : Option1. In CF7 you can only define the name.

    To make it work you have to leave out the slug in ACF, the name has to be exactly the same.
    Example:
    in CF7 [checkbox checkbox-name "Option1" "Option2"]
    in the ACF field just Option1 and Option2

    I hope it helps
    Robert

    Plugin Author Aurovrata Venet

    (@aurovrata)

    In CF7 you can only define the name.

    well actually you can use pipes to do something similar. I believe they work in checkboxes as well.

    well actually you can use pipes to do something similar. I believe they work in checkboxes as well.

    Nice! I can confirm, that it works.

    That means, this is possible:
    CF7 [checkbox checkbox-name "Banana|fruit1" "Apple|fruit2"]
    ACF fruit1 : Banana and fruit2 : Apple

    Plugin Author Aurovrata Venet

    (@aurovrata)

    awesome!

    Hi @aurovrata

    i could add some information to this topic: https://wordpress.org/support/topic/mapping-file-field-to-image-or-any-file/ because i had the same problem. I managed to map a cf7-file-field to an acf-file-field.
    Is it possible to answer to that resolved topic?

    Plugin Author Aurovrata Venet

    (@aurovrata)

    Is it possible to answer to that resolved topic?

    unfortunately not, as the topic is now closed (by the WP forum) and I have not control over this.

    However, what could be usefule is to create a new FAQ on handling ACF fields.

    If you would like to contribute your findings this way, you can do a PR on the github repo and modify the Readme file by adding a new FAQ.

Viewing 11 replies - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.