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!
Vinish Kapoor
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
Bansari
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!
Vinish Kapoor
You can call the JavaScript methods on a button click instead of lose focus.
Bansari
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!