Viewing 5 reply threads
  • Author
    Posts
    • #6075
      hirschbrat
      Member

      Hello,

      if I change the post status of a CPT and the validation of a meta field fails, the post status is changed to the new status in piklist 0.9.9.7.

      In 0.9.4 this was not the case. There I was not able to change the post status while validation fails.

      Is this behavior in 0.9.9.7 as expected? How can I achieve the same behavior as in version 0.9.4?

    • #6099
      Steve
      Keymaster

      @hirschbrat– This is not expected and is a bug. Will fix in next version.

    • #6891
      Steve
      Keymaster

      In Piklist > Settings, turn on “Javascript Validation”. That should fix your issue.

      Let us know if that works

    • #7606
      hirschbrat
      Member

      @Steve

      Unfortunately this does not work. The post status changes despite validation fails.

    • #7831
      hirschbrat
      Member

      I got the Javascript Validation running, and the post status is preserved if validation fails.

      But now I always have to click the submit button twice, to submit the post (probably the first time javascript validation runs?). This is very unintuitive because the user does not know what happened.

      Is there any way to avoid the second click if validation is successful? Turns out in operation that some changes where not saved, because the author did not clicked a second time…

    • #7893
      hirschbrat
      Member

      Seems to be fixed in 0.9.9.10.
      Now the posts are saved directly with the first click on submit.

      Thanks!

Viewing 5 reply threads
  • The topic ‘post status changes despite validation fails’ is closed to new replies.