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!

Dynamic action 'Confirm' on button click problems

902746Dec 12 2011 — edited Dec 13 2011
Hi,

I'm having a problem with confirming a page submit.
What I want to have is a little box which says "Are you sure you want to confirm this request?" and then the user can click 'yes or no' or 'ok or cancel' or whatever. I have tried 2 ways with dynamic actions. The first worked fine: Selecting 'before page submit' as the when bit and then the action was the 'Confirm' notification. That worked fine, the popup appeared when I tried to confirm and if I click ok it submitted the page, if I clicked cancel it didn't. The problem with that was that I have more than just the one button that submit the page but I don't want the confirmation for all of them...just the one, but it happened on all of them.
So I found this: http://www.talkapex.com/2010/12/apex-how-to-trigger-dynamic-action-from.html which tells you how to trigger dynamic actions from a specific button. Now this worked only to an extent; It triggered correctly on only the one button but it didn't work further than that. If I clicked ok it submitted it but if I clicked cancel it still submitted it.
So what i'm asking is: is there a way of doing this effectively with the dynamic actions? if not is there a better way of confirming before submitting the page? (I think you can do it with javascript but I don't know javascript at all so if thats the only way there is can you explain very simply)

Thanks a lot

abarnybox
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 10 2012
Added on Dec 12 2011
5 comments
3,592 views