• Resolved zippa71

    (@zippa71)


    Help me figure it out, the problem is the following. (I’ll immediately make a reservation I’m a teapot)
    Inputs: ACF pro, ACF extended.
    There are, say, 5 groups of fields.
    Each group has some number of fields.
    ACF extended has the ability to make a form (acfe-form)
    (Post type and Taxonomies already done: 1 post type and 2 taxonomies)
    When creating a form in General, I specify the field groups created earlier.
    I create action, everything is OK. I indicate the short code on the page, the fields are displayed, everything is saved, everything seems to be fine, but:

    In one of the groups I indicate the display condition: Record taxonomy-> Sale or Rent

    If I add an ad in the backend, everything works as it should: I select the sale taxonomy, the group that is needed is loaded. If I indicate a purchase, another. Each group has its own conditional logic.

    But, the form in the frontend immediately displays all groups of fields, how to cure this?

    And yet, there is very little description of all the possibilities, where can I find more information, especially with regard to the form?
    Thank you very much.

    • This topic was modified 5 years ago by zippa71.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter zippa71

    (@zippa71)

    Dear developers!
    Is it really so difficult to answer at least something, I didn’t write here because I have nothing to do or am trying to get an answer to a trivial question for me.
    Your plugin is very good, but in some moments it is not clear what to do.
    There is very little information on the plugin site.
    Searches for information on the Internet do not yield results.

    Please answer.

    Thread Starter zippa71

    (@zippa71)

    Once again I will try to outline the essence of the problem.
    I’m interested in this part … / post_type = acfe-form

    In General> Field groups * I specify the field groups.
    One of the groups should appear in the frontend only if the taxonomy in the other group is selected.
    In the frontend, all groups at once, conditional logic does not work.

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Thanks for the report! Sorry, but I was very very busy last week, and had no time to take care of support questions. I understand the frustration of lacking documentation, that’s something I’m currently working on.

    However, you must understand that this plugin is still heavily under development, and many new features will come in future updates, and I don’t want to waste too much time on documentation that will be invalidated by updates, feature requests or rework.

    I understand what you’re trying to achieve, and I will come up with an answer tomorrow, just give me some time to catch up my breathe ??

    Thanks for your understanding,

    Regards.

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello Zippa,

    Sorry for the late answer. I have a good news, the latest 0.8.3 Update added the feature you’re asking for. In your form configuration, you now have access to a new setting called “Post field group”, in the “Advanced” tab. Here is a screenshot: https://i.imgur.com/OvqeyZX.png

    This setting will let you choose which post field groups you would like to display. This means that if you have 2 field groups for the same post, both of them will be displayed. However, if one field group has a display condition (ie: category = category 1), then it won’t be displayed, until the said post has the category 1.

    The standard ACF Form already use this method to display multiple field groups with conditions for one post (the post_id parameter in https://www.advancedcustomfields.com/resources/acf_form/). However, you must understand that ACF Extended Forms are quite different due to the introduction of “Actions”. One ACF Extended Forms can process multiple actions for one single submission (create one post and update an another), so it’s quite different.

    This new setting will fulfill your need tho. Just to let you know, you also have access to a specific filter that will let you change this new setting programatically in PHP:

    
    add_filter('acfe/form/load/form=my-form', 'my_acfe_form_post', 10, 2);
    function my_acfe_form_post($args, $current_post_id){
    
        $args['post_field_groups'] = 244; // New post ID to load field groups from
        
        return $args;
    
    }
    

    Have a nice day!

    Regards.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Frontend form’ is closed to new replies.