• Resolved noobygamer

    (@noobygamer)


    Hello,

    To format different data (for example, a price with the initials currency) I create some HTML fields which display the value of a field (for the example {currency-1} and which add the sign € after. The problem is that I can select the HTML fields in the customs fields of postdata, on the form the value is displayed, but when creating the post the field remains empty. I tested by putting the {html-X } in the email sent when validating the form, and it simply displays the name of the field ({currency-1} €), and not its content.

    Am I doing something wrong? It is not possible to retrieve the value of an HTML control?

    This technique would also allow me to be able to import information into the post only after validation from the customer (for example, he must give me his phone number but can decide to display it or not on the post).

    Thank you for your future feedback,

    Florian

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter noobygamer

    (@noobygamer)

    I have a second question, I would like to create an excerpt type for all the posts created by the Forminator form (with a shortcode). So I would like to send an excerpt without showing the field on the frontend … Do you have a way to do this?

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @noobygamer ,

    Am I doing something wrong? It is not possible to retrieve the value of an HTML control?

    Is it possible to share the form export, so that we could double-check your workflow to ensure whats missed regarding this?

    You can use Pastebin, dropbox etc to share the export code.

    I would like to create an excerpt type for all the posts created by the Forminator form (with a shortcode). So I would like to send an excerpt without showing the field on the frontend … Do you have a way to do this?

    Just to be sure, you want to add excerpt for the already created posts via Forminator? or it should be a separate form which only sends Excerpt for existing posts?

    Unfortunately, there isn’t any out of the box setting regarding this at the moment. Could we know the exact workflow you are looking to achieve here so that I could double-check with our Forminator team to see if there is anything that could be looked into?

    Please do advise if I’m missing anything. Looking forward to your response.

    Kind Regards,
    Nithin

    Thread Starter noobygamer

    (@noobygamer)

    Hi Nithin,

    Here the link for the export code https://drive.google.com/file/d/1KC6FAr9xkfgLlu1PgROv8zsJvmoKnWNR/view?usp=sharing

    I try to import {html-10}, {html-16} and 3/4 others on custom fields on postdata.

    For the excerpt ([acf field=”Prix”] [acf field=”Type de prix”]), i want to add it on all new posts who it created by this Forminator form (all of this CPT are creat by Forminator). The only way I see is to pre-fill the “excerpt” field of the postdata but this will show it to customers, who can modify it ??

    Best regards,

    Florian

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @noobygamer,

    I tested by putting the {html-X } in the email sent when validating the form, and it simply displays the name of the field ({currency-1} €), and not its content.

    Thanks for sharing the form export, seems like you are using HTML field to display a currency field. HTML field will only display whats typed.

    Since you are looking to display the value of the currency, you can use the “Calculation” field and add the currency field in the field settings as shown in the following screenshot:

    Screenshot at 20:35:44.png

    And then add the currency symbol as either prefix or suffix according to your needs:

    Screenshot at 20:46:37.png

    For the excerpt ([acf field=”Prix”] [acf field=”Type de prix”]), i want to add it on all new posts who it created by this Forminator form (all of this CPT are creat by Forminator). The only way I see is to pre-fill the “excerpt” field of the postdata but this will show it to customers, who can modify it ??

    I don’t see ACF field has field type named “Excerpt”, so I’m afraid, I’m a bit lost with the above. The custom fields in ACF and Excerpt in the post both are different.

    If you meant that you are looking to pass the data submitted via Forminator to ACF field then it’s possible by adding “Custom Fields” in “Post Data”.

    For example, if the ACF field name is “customer” and it is of the type “text area” created in ACF plugin. You’ll have to add a text area field in the Forminator form 1st.

    Screenshot:

    Screenshot at 21:28:30.png

    Once done, you can assign the “TextArea” field under the Custom fields of “Post Data”:

    Screenshot at 21:29:27.png

    The above will ensure that when a user submits the form, the ACF field will get populated.

    Is that what you are looking? Please advise if I’m missing anything. Looking forward to your response.

    Kind Regards,
    Nithin

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @noobygamer

    I hope you are doing well.

    We haven’t heard from you in a while, I’ll mark this thread as resolved.

    However, feel free to let us know if you have any additional question or problem.

    Best Regards
    Patrick Freitas

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘HTML field in Postdata’ is closed to new replies.