Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Apex 23.2 Page Reload and Validation Errors

cgrav2 hours ago — edited 2 hours ago

I am looking for suggestions for the best way to handle how my page functions.

When the page first opens there is a text box where an employee can enter their Employee ID. When you click tab or press enter, it calls an apex.server.process that fetches information about the employee and shows two regions that are hidden. In the regions there are two select list and a text box that have validations. There is a button to click in each of the regions.

Here is the issue…

When an entry is made in the text box and the button is clicked, the validation error appears as it should if violated. However, the page resubmits/refreshes leaving only the employee id in the text box. In order to get it all back, the id must be changed differently and then changed back to the original. This is a pain.

Possible Solutions:

  1. Is there a way to stop the page from submitting/refreshing if the validation error happens?
  2. Able to just click tab or press enter to reuse the employee id in the textbox?

Open to other solutions as well.

Basically, I want the user to be able to fix the error without having to select everything again.

Comments
Post Details