• Resolved phraisohn

    (@phraisohn)


    I create a form to let users submit the form. And that form will be the New Post. And I want to send an email to the officer who looks after each category.

    For example, if the user submits the form with the Select “Presale” option. The Post will be created under Presale Category and an email should be sent to officers who work with Presale topic.

    I see that the Post Data has the Category option but it is can’t use for Email Conditional. I must use the Select Field but I don’t know how to let the Select field populate the Post Category. Do you have any suggestions?

    Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @phraisohn

    I hope you’re well today and thank you for your question!

    The category selection is a part of “post data” field which is quite a specific field (or rather a set of fields) and it can’t be used for e-mail routing and conditions settings.

    Standard select field, however, can’t also be used to select categories for post creation as everything related to post creation must be done within the “post data” field (as the way the submission is handled internally is a bit different than with regular fields).

    So out of the box it’s currently not possible to set it the way you want to, I’m afraid. It would require custom solution to trigger notifications separately (with a custom code) based on already submitted post category. It would have to be custom coded which, I’m afraid, goes a bit outside the scope of this support.

    However, it might be possible to set a “workaround”. This plugin seems to be able to send such notifications based on user role:

    https://www.ads-software.com/plugins/wpsite-post-status-notifications/

    If your “category officers” would use different user roles (you can use User Role Editor to duplicate roles under different names but with the same capabilities) and then assign notifications based on these roles.

    I didn’t test it but it seems to be a possible workaround so may be worth a shot.

    Kind regards,
    Adam

    Thread Starter phraisohn

    (@phraisohn)

    hello @wpmudev-support8 ,
    Thank you very much for your fast reply and the explanation. Yes, I understand the requirement is very out of the box and I am appreciated your help with the link ??

    I will try and test it.

    Your plugin is very helpful and saving time. Thank you again ??

    Best regards,
    Sohn

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @phraisohn

    You are welcome, we are happy to hear you like the plugin.

    Best Regards
    Patrick Freitas

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to Pre-populate Post Category to Select Field?’ is closed to new replies.