- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2024 09:14 AM - edited 06-04-2024 09:17 AM
I have written onsubmit client script which will ask for confirmation before submitting the record producer.
I get the message (see attachemnt), but when I click on cancel, it is still submitting the record. How to avoid this?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2024 12:37 AM
Realized that having a confirmation (validation) box when using async ajax is impossible. So taking tip from this video, I created a check box, which user has to check every time some value changes in the RP. Had to create many catalog client scripts that will trigger this calculation when the respective value changes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2024 09:24 AM
I've tried to execute this same logic in a different way, it worked for me. I'm providing the modified if, else condition, try this in your code.
if(answer == true){
//g_form.addInfoMessage("you have selected yes!");
}
else{
//g_form.addErrorMessage("You have selected No");
return false;
}
Hope this helps you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2024 09:33 AM
Could this problem be related to cookies?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2024 12:37 AM
Realized that having a confirmation (validation) box when using async ajax is impossible. So taking tip from this video, I created a check box, which user has to check every time some value changes in the RP. Had to create many catalog client scripts that will trigger this calculation when the respective value changes.