Sign Up

❇️ OrclQA.Com is a question and answer forum for programmers.
❇️ Here anyone can ask questions and anyone can answer to help others.
❇️ It hardly takes a minute to sign up and it is 100% FREE.

Have an account? Sign In


Have an account? Sign In Now

Sign In

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now
Sign InSign Up

OrclQA.Com

OrclQA.Com Logo OrclQA.Com Logo

OrclQA.Com Navigation

  • Oracle
  • Oracle Apex
  • Python
  • Questions
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Ask Question
  • Add Post
  • Oracle
  • Oracle Apex
  • Python
  • Questions
Bansari
Bansari

Bansari

  • 4 Questions
  • 13 Answers
  • 0 Best Answers
  • 44 Points
View Profile
  • 0
BansariContributor
Asked: June 25, 20212021-06-25T02:53:23+05:30 2021-06-25T02:53:23+05:30

Want to have Submit ability after checking Validation

  • 0

Hello,

Hope you all are doing well.

I want to ask how can I submit the page again after checking the validation when I'm having
"Enable duplicate page submissions" page-level attribute set to "NO"

As I mentioned attribute for duplicate page submission set to NO and have a validation which is checking APEX item(SALES) "Zero or NULL".
So, let say when I have SALES as 0 and I'm clicking SUBMIT button then it shows me the validation error which I have set. And after inputting some amount in SALES, when I try to SUBMIT it again it is showing me error "This page was already submitted and can not be re-submitted."
How can I overcome it and have the ability to submit it after correcting validation error and having duplicate page submissions set as 'NO'?

Thanks in Advance!

question
  • 4
  • 88
  • 0
  • 0
  • Share
    • Share on Facebook
    • Share on Twitter
    • Share on LinkedIn
Answer

4 Answers

  1. Vinish Kapoor

    Vinish Kapoor

    • 1 Question
    • 727 Answers
    • 63 Best Answers
    • 4k Points
    View Profile
    Vinish Kapoor Enlightened
    2021-06-25T07:39:15+05:30Added an answer on June 25, 2021 at 7:39 am

    Then you should apply the validation without submitting the page using JavaScript. Check the following tutorials:

    Validate without Submit using JS

    Display error messages using JavaScript API

    • 1
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
    • Bansari

      Bansari

      • 4 Questions
      • 13 Answers
      • 0 Best Answers
      • 44 Points
      View Profile
      Bansari Contributor
      2021-06-25T08:01:18+05:30Replied to answer on June 25, 2021 at 8:01 am

      Thank you for your quick response and providing alternative.

      But I do have a question is the solution possible that it validates only when we click submit as I’m having 2 other different buttons and this is checking every time as it has lose focus. I only want to check it when user clicks submit button and not check if other 2 buttons clicked.

      Thanks!

      • 0
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
      • Vinish Kapoor

        Vinish Kapoor

        • 1 Question
        • 727 Answers
        • 63 Best Answers
        • 4k Points
        View Profile
        Vinish Kapoor Enlightened
        2021-06-25T17:57:30+05:30Replied to answer on June 25, 2021 at 5:57 pm

        You can call the JavaScript methods on a button click instead of lose focus.

        • 1
        • Share
          Share
          • Share on Facebook
          • Share on Twitter
        • Bansari

          Bansari

          • 4 Questions
          • 13 Answers
          • 0 Best Answers
          • 44 Points
          View Profile
          Bansari Contributor
          2021-06-28T07:26:51+05:30Replied to answer on June 28, 2021 at 7:26 am
          This answer was edited.

          Hello,

          On a button click event, after firing the error message(From the ajax call-back process), it is not submitting again. It is taking as a second submission and showing the same error message.

          What would be the solution to have it on button click event?

          Thanks!

          • 0
          • Share
            Share
            • Share on Facebook
            • Share on Twitter

You must login to add an answer.

Forgot Password?

Sidebar

Explore

  • Ask Question
  • Add Post

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
© 2022 OrclQA.Com. All Rights Reserved.
Privacy Policy - About Us