• Resolved matietr

    (@matietr)


    Hello!

    I’m currently setting the plugin up on my website and testing functionalities. What causes an issue for me is that when the form is filled out and the user clicks “Submit”, but there is an error message (empty required field, wrong image size, etc.), the post still gets submitted. And the user then cannot submit the post with the original title anymore, as it would be a duplicate.

    It’s crucial for me to avoid duplicate post titles, and for the users to be able to submit the exact title they want, they can’t alter it to something else every time the submission fails (and still goes through in the background, with incorrect/missing information).

    Is it possible to avoid submission on error message?
    (The plugin is wonderful by the way, thank you so much.)

Viewing 1 replies (of 1 total)
  • Plugin Author Jeff Starr

    (@specialk)

    Hi @matietr,

    The only way to avoid the duplicate-post error is to disable the “Unique Titles” option. Otherwise, if you are sure that you know what you are doing, you can hide that specific error message by adding this snippet to the plugin’s “Custom Content” setting:

    <script>jQuery(document).ready(function() { jQuery('.usp-error:contains("Duplicate post title")').hide(); });</script>

    Save changes and done.

Viewing 1 replies (of 1 total)
  • The topic ‘Posts are submitted on error message’ is closed to new replies.