I want to create a confirm dialog with submit button that can fire only if one item is not submitted in that page.
i have one check box item in my page called P2_LWF
i created confirm dialog with button using the below code
The moment i click submit button i want to fire that confirm dialog only if P2_LWF is unchecked.
How can i do that in my application?
You can use jQuery to check if checkbox is checked, for example:
Or check value of check item with APEX JS API $v('P2_LWF')
If you have APEX 4 or above you can use dynamic actions (OnClick event) and its conditions for this.
Thanks for the response.
I am new to apex,
So could you please guide me how to use this jQuery and JS in dynamic actions for this particular case step by step.
Event = Click
selection type = ?
condition = ?
Action = ?.
now that button action is changed to defined by DA,its not moving once i try to click on that.
find application link below
user name: email@example.com
you can access my work space using below credentials
workspace : aneesmohd
username : firstname.lastname@example.org
application name: Confirmation Dialog
application id= 14972
when i press submit button i can get the confirmation dialog,but i want to make that as conditional (only when dl and lwf checkboxes are not ticked).if those are ticked i want to submit without getting the confirmation dialog.
and want to clear the employee region cashe(report region) ones submit button pressed or refresh the page.
Edited by: anees_mohd on Jan 16, 2013 3:25 AM
I don't know what you mean by: "...want to clear the employee region cashe(report region) ones submit button pressed or refresh the page."