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!

BUG: APEX 4 Dynamic action does not hide validation message

SaraBMar 8 2011 — edited May 20 2011
Hi

I have a dynamic action on a page that hides or shows fields on the page depending on the value of an item. If the fields are shown then they are required, so I've added 'not null' item validations to the page to check these items if the value of the item is set appropriately (i.e. the validations only fire if the dynamic action has shown the fields). This works fine.

However, if the dynamic action fires to show the fields, then the items fail validation and the user then changes the item value so the fields are not shown then the validation messages for the items are still shown. This is really confusing as there are failed validation messages on the page for items that aren't shown and it is also using up space on the page.

This is really difficult to explain, so I've reproduced it on a simple page on apex.oracle.com http://apex.oracle.com/pls/apex/f?p=37295:1 . If you change the radio group then you will see that item1 and item2 are shown for option1 and item3 and item4 are shown for option2. Select option2 and click the Submit button, you'll see the validation messages for these two fields. Now click option1, this will hide item3 and item4 but it doesn't hide their validation messages.

I've tried searching the forum to find a workaround, but no-one has reported the same thing. I've found a lot of similar posts, so if I've missed something let me know. Also if there is a workaround then I'd be grateful as presently this is causing us lots of problems, my example is a lot simpler than our pages :-)

Thanks in advance,
Sara
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 17 2011
Added on Mar 8 2011
5 comments
1,043 views