• Resolved Presson

    (@pressonforlife)


    Hello Sir,

    I am using Forminator to submit a Custom Post Type called “Contestants” from the frontend.

    This means that “Post Title” is now “Full Name“, “Post Excerpt” is now called “Profession“, and “Post Content” is now “About Me“.

    But in the error message when the Form is attempted to be submitted without contents, it gives this message “At least one of these fields is required: Post Title, Post Excerpt or Post Content” as you can see here — Screenshot by Lightshot

    How do I change that error message to say “At least one of these fields is required: Post Title as ( Full Name), Post Excerpt as (Profession) and Post Content as (About Me) ?

    Regards.

Viewing 13 replies - 1 through 13 (of 13 total)
  • Hi @pressonforlife

    I hope you are doing well today.

    Please export your form, upload it to Google Drive, or use Pasetbin, so that we can take a closer look at your post data field settings.

    Kind Regards,
    Kris

    Thread Starter Presson

    (@pressonforlife)

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @pressonforlife ,

    I could notice what you have pointed out. I’m afraid that at the moment, what you notice is the expected behaviour. However, I do see this could be improved within the plugin side, and I will make sure to bring this further to our Forminator team’s attention to improve the error message.

    A workaround would be to use a plugin Like Branda and its Text Replacement feature ie for example:

    https://wordpress.org/plugins/branda-white-labeling/

    Please check this doc for more info:
    https://wpmudev.com/docs/wpmu-dev-plugins/branda/#text-replacement

    In short, you’ll need to this text under “Find Text” in Branda:

    At least one of these fields is required: Post Title, Post Excerpt or Post Content.

    Then add your custom text under “Replace with” field as shown in the screenshot below:

    View post on imgur.com

    Regards,

    Nithin

    Thread Starter Presson

    (@pressonforlife)

    This is the first time in my entire life where I encountered a Form that we cannot easily edit error messages.

    From Contact Form 7, Elementor Form, MetForm, Fluent Form and all other forms that I have used, I am always able to edit what the error messages will be.

    Why am I now going through this stress with Forminator, just to change or edit Error messages ?

    In Elementor for example, we are able to do a field by field validation, and create a field by field custom error message.

    Why is this such a big deal in Forminator insomuch that there’s no way to natively edit error messages in Forminator Form ?

    Can Forminator Please update itself and ensure that we can natively edit error messages on a sort of field by field basis?

    2.) That Text ( At least one of these fields is required: Post Title, Post Excerpt or Post Content”) is coming from somewhere.

    Can you show me how to traverse the entire Template path which takes me to the main place where that Text is, so that I can manually go and change it ?

    You see, I don’t want to install another plugin just because of this small thing : so I need you to direct me to the specific part in the Forminator plugin where that Text is located, so that I can go change it, manually.

    Regards.

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @pressonforlife

    We understand your concern, but neither of the mentioned plugins allows you to create a form for users to submit posts. Unfortunately, the options for error messages in the post submission form are limited at this moment.

    If you review the standard fields, you’ll notice an option to add custom error messages. However, due to the complexity of the post form, there are no options to modify the error messages.

    Can Forminator Please update itself and ensure that we can natively edit error messages on a sort of field by field basis?

    As my colleague mentioned, we already created a feature request from your feedback however, we can’t provide an ETA about when it will be implemented.

    Can you show me how to traverse the entire Template path which takes me to the main place where that Text is, so that I can manually go and change it ?

    I believe this message is created dynamically and we don’t recommend modifying the core plugin files because all changes will be lost when you update the plugin, I asked our developers to see if we have any Hooks/Filters to modify it. We will get back to you once have more information.

    Kind Regards
    Amin

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @pressonforlife

    We received further feedback from our Forminator team.

    You can use the following hooks/filters to change the error message for your form:

    forminator_postdata_field_post_content_nr_validation_message filter for Post content field error
    forminator_postdata_field_post_title_nr_validation_message – for Post title
    forminator_postdata_field_post_excerpt_nr_validation_message – Post excerpt

    Best Regards
    Amin

    Hi @pressonforlife

    We haven’t heard from you in a while, I’ll go and mark this thread as resolved. If you have any additional questions or require further help, please let us know!

    Kind Regards,
    Kris

    Thread Starter Presson

    (@pressonforlife)

    That your answer didn’t feel helpful, even though it looks like a good step forward.

    This is what happened: I clicked submit, without filling any information into the Form.

    Then it told me this error message — https://prnt.sc/LWDfmlgKn5ch

    You see, Post Title, Post Content and Post Excerpt is what the error message stated as needed, before the Form can be submitted.

    I am saying that, I don’t want to change Post Title, Post Content and Post Excerpt from being what they are : I only want the Error Message to reflect what I have renamed them for my Use case.

    Your reply to me, shows that you didn’t understand the problem !

    Forminator allowed me to rename those Labels, such that for me, “Post Title” became “Full Name“, “Post Excerpt” became “Profession“, and “Post Content” became “About Me“.

    Rather for the error message saying “At least one of these fields is required: Post Title, Post Excerpt or Post Content“,

    — the error message in My Use case should say “At least one of these fields is required: Full Name, Profession or About Me” .

    Do you now understand the situation ?

    I am saying I want and need the error message to speak the language of my Use case, and not the generic Blog language of Post Title, Post Content and Post Excerpt.

    The language of my “Contestant Use case” is Full Name, Profession and About Me, and that is what I need the error message to speak !!!

    Do you now understand the situation ?

    Regards.

    Plugin Support Williams – WPMU DEV Support

    (@wpmudevsupport3)

    Hi @pressonforlife ,

    I hope you’re doing well.

    The language of my “Contestant Use case” is Full Name, Profession and About Me, and that is what I need the error message to speak !!!

    Do you now understand the situation ?

    Sure, we totally understand the situation but as mentioned initially by Nithin, it is not currently possible from Forminator, this was already forwarded to the developers and this feature could be available in the future but I’m afraid we can’t give you an ETA of when this could be possible.

    In the meantime, you could use custom coding with the hooks mentioned by Amin or a plugin like Branda with its option to replace text as mentioned by Nithin

    `A workaround would be to use a plugin Like Branda and its Text Replacement feature ie for example:

    https://wordpress.org/plugins/branda-white-labeling/

    Please check this doc for more info:
    https://wpmudev.com/docs/wpmu-dev-plugins/branda/#text-replacement`

    I hope this helps.
    Best Regards,
    Williams Valerio

    Thread Starter Presson

    (@pressonforlife)

    What I want to achieve with the custom error message is a singular thing that I want to change, and I will not bother my server with bloat from another extra plugin.

    2.) Since you already know my Use case and know the hook(s) to use, send me the PHP code that achieves that.

    Regards.

    Hi @pressonforlife

    I pinged our developers once more to check this case. We will post an update here as soon as more information is available.

    Kind Regards,
    Kris

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @pressonforlife,

    This will require custom code by using all the filters at once to call the same function to change the error message.

    forminator_postdata_field_post_title_nr_validation_message

    forminator_postdata_field_post_content_nr_validation_message

    forminator_postdata_field_post_excerpt_nr_validation_message

    However, for any further advise regarding the above aspects will require custom coding. I’m afraid providing the custom code will be outside the scope of support. For that, you’ll need to hire a developer to provide the required custom code for you. WordPress provides a jobs directory here https://jobs.wordpress.net/

    If you need further advice about it, feel free to email us at wpsupport@incsub.com using the following subject.

    “Subject: ATTN: WPMU DEV support – wp.org”

    Regards,

    Nithin

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @pressonforlife,

    Since we haven’t heard from you for a while. I’ll mark this thread as resolved for now. Please feel free to re-open this thread if you need any further assistance.

    Kind Regards,

    Nithin

Viewing 13 replies - 1 through 13 (of 13 total)

You must be logged in to reply to this topic.