user2755525
user2755525

Reputation: 219

Oracle Apex Forms

I have a question about Apex Forms. I have a form with 10 fields, out of which 2 fields are "start_date" and "end_date", I want to ensure that end date must be >= start date, before the page is submitted. But the session state variables don't get user entered values until the page is submitted.

I want a way so that I can access/manipulate fields values before the page is submitted (so to reduce network traffic). Can someone please let me know how I can do it? please help.

Thanks in advance.,

Upvotes: 0

Views: 422

Answers (2)

Tony Andrews
Tony Andrews

Reputation: 132580

The only way to check the form without submitting it is via Javascript. You could have a button that calls a Javascript function to check the data before submitting the form. See this SO question for some guidance on comparing dates in Javascript.

If you are not experienced with Javascript then this will be quite tricky! Are you sure it is necessary?

Upvotes: 1

bobek
bobek

Reputation: 8020

You can use validation components for those kind of things: http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/bldr_validate.htm

Upvotes: 0

Related Questions