• Resolved lzfy84

    (@lzfy84)


    Hi, does this plugin support custom post types?

    Thank you.

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

    (@aurovrata)

    Yes. In fact it currently does not allow you to use any existing post in your installation.

    You can define a new custom post type for each form that you map

    Thread Starter lzfy84

    (@lzfy84)

    Awesome. Is it somehow possible to assign a text field to a category? For example, if I choose category X from a dropdown, it will show text field Y.

    Plugin Author Aurovrata Venet

    (@aurovrata)

    not sure I follow you. By category I assume you mean a custom taxonomy… category is default taxonomy of post and as I clarified above you can map a form to an existing post type.

    You can create taxonomies associated to the custom post type you map to a form.

    Custom taxonomies are by default associated with select/checkbox/radio buttons. So you can map a taxonomy to either one of these type of fields in your form. Once mapped, any terms in your taxonomy will automatically get populated in your mapped field for a user to select/check.

    If by text field you mean to have the ability to created new terms for a taxonomy from the field itself, you can enable this and use the built-in filters provided to ensure the new terms is added to the taxonomy as the time of form submission.

    Thread Starter lzfy84

    (@lzfy84)

    Hi, thank you for the long explanation. What I meant was, let’s say I have a custom post with two custom taxonomies and two custom text fields. When I choose taxonomy x from dropdown 1, it should show the custom text field a. And when I choose taxonomy y, it should show text field b.

    But I realize this is a very specific request and the plugin most probably doesn’t support it ??

    Plugin Author Aurovrata Venet

    (@aurovrata)

    The functionality you are requesting is related to the actual form itself, so in this case the Contact Form 7 plugin. This plugin is only an extension that allow you to map a form to post. It does not manage your form and how it is displayed.

    However, if you wish to do this with Contact Form 7, it would be relatively easy to achieve using javascripts appended to your form, detect the change event on your select field and display your text field, regardless of what options are available in the select field. You could post a question on Stackoverflow for some help.

    Thread Starter lzfy84

    (@lzfy84)

    Thank you. I will probably do that.

    Have a nice day.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Custom post types’ is closed to new replies.