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!

Confirmation Window with YES & NO buttons?

677690Apr 1 2009 — edited Apr 3 2009
Hello guys,

I am trying to create login_name and by default password, when user enter's name into the text box item.

I have one computation, validation and one insert(pl/sql) into processes everything is working very much fine when user/admin enter's name into the text box item, login_id and password are created for the name which is entered by the user/admin.

Now I wanna add one functionality, saying one confirm window probably with two buttons YES and NO, when user enters name into the item and hits submit button, the small confirm window should comeup with YES or NO buttons, if yes hits YES button than login_id and password should be created otherwise not!!!

I have writted javascript into HTML Header under Edit page attributes:-

-----------
<script language="JavaScript" type="text/javascript">
<!--

function confirm_response()
{
var answer = confirm ("Are you sure this will Create New Physician?")
if (answer) {
window.location = "f?p=&APP_ID.:5:&APP_SESSION."
}
else {
// do something else
}
}
//-->
</script>
----------

and called this javascript function from submit button, by writing into Optional URL Redirect -> URL Target and selecting Target is a "URL"

-------
javascript:confirm_response()
------

the window comesup, but when I enter's name into the text box item, it still doesn't creates login_id & password into the DB Table.

and help, when and what I'm doing wrong...???

appreciated.!!!


thxs


regards,
Kumar
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 1 2009
Added on Apr 1 2009
6 comments
965 views