• Resolved pingoes

    (@pingoes)


    Hi, a complete newbie here. What I am trying to do: I have a custom post with custom fields, and I want the user to submit one such custom post via a form created with forminator. In the form I have the different fields (radio, text, checkboxes etc.) which reflect the custom fields of the custom post. With “post-data” I match the custom field slug (copied from the ACF field) with the field entity created in forminator.

    Question:
    1) Why I do not see all the custom fields in “post-data” but only some of those? (like the custom field for image upload does not show up)
    2) Once the post is submitted, I find the post in post list with my custom fields empty and another section with all the data from forminator. Don’t they talk to each other even if I matched field-slug (ACF) to the forminator field label?
    3) I want the user to insert also a HTML code, but whatever I try (HTML field, text input field etc.) the result seems to be empty (even if is not). How do I do that?

    • This topic was modified 4 years, 9 months ago by pingoes.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter pingoes

    (@pingoes)

    I figured out why my custom checkbox fields and my forminator outputs do not sync. Forminator’s format for several boxes selected in the checkbox is comma-separated (option1, option2, option7) while the custom checkbox field from ACF separate choices with a line-break:
    (option1
    option2
    option7)

    is there a way to define how the output of a field should be formatted?

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hello @pingoes

    I hope you’re well today!

    I’m sorry for the late response and I’m glad to hear that you managed to figure out how to handle some of your initial questions.

    As for defining how Forminator handles “custom checkboxes” – that’s not currently possible. The way custom fields data is stored with WordPress database is that it’s just a post meta and it can only be stored as a string or array. Any other format – or rather the way any plugin “interprets that data” – is more of a “Free ride” rater than a standard.

    Therefore, currently Forminator uses the simplest possible “format” to store any custom fields values and it directly saves them as meta data without taking into account any “special formatting needs”, I’m afraid.

    ACF, however,is a very popular plugin and we already do have an integration feature planned. It’s on a “to do” list for one of future releases so it will let you easily “re-use” ACF fields in such form, without any worries about proper “mapping” and formats of the fields – just a selection from a drop-down box to add a field to the form.

    Kind regards,
    Adam

    Hello @pingoes

    I hope you are doing well!

    We haven’t heard back from you for a while now so we’ve marked this ticket as resolved. If you do have any followup questions or require further assistance feel free to reopen it and let us know here.

    Kind regards,
    Nastia

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom Fields and Forms’ is closed to new replies.