• Hi,
    I need to set IDs to some radio buttons options so I did this:
    [radio formuletype “Formule ESQUISSE” id:esquisse]
    [radio formuletype “Formule PROJET” id:projet]
    [radio formuletype “Formule CONCEPTION” id:conception]
    This functions correctly.
    I am trying to get the selected button value to a meta field “formuletype”
    But in the custom field section, I have the field name on the left but the field does not appear as an option.
    I also tried a filter :
    add_filter(‘cf7_2_post_filter-project-formuletype’,’filter_formuletype’,10,3);
    function filter_formuletype($value, $post_id, $form_data){
    if(isset($form_data[‘formuletype’])){
    $value = update_post_meta( $post_id, ‘formuletype’, $form_data[‘formuletype’] );
    }
    return $value;
    }
    I also tried simply:
    $value = $form_data[‘formuletype’];

    The idea is to get the form field value into a meta field value in the post. I am open to suggestions. Thanks in advance

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

    (@aurovrata)

    Dear @richyvoc apologies for not replying earlier, somehow I missed your post altogehter.

    I have the field name on the left but the field does not appear as an option.

    why are you contructing your [radio] fields usign 3 tags, why not use a single one,
    [radio radio-field "field1" "field2" "field3"]

    there radio field is appearing on my server, so there is no bug that I can see which would prevent your field from appearing in your list.

    Do you have any PHP errors on your server, or any javascript errors in your web console?

    The idea is to get the form field value into a meta field value in the post. I am open to suggestions. Thanks in advance

    You can always hook the post mapping action fired at the end of the mapping process post submission and programmatically setup your meta-fields.

Viewing 1 replies (of 1 total)
  • The topic ‘Radio button fields are not mappable’ is closed to new replies.