Client or Server script to prevent action from taking place
is there syntax I can use to associate to a form btnClick event in order to prevent an action from taking place using either client or server scripting (Code activity)? I assume this would be placed at event handler 'when action started'? or on form submission?
i can't seem to find anything on this.
Tagged:
0
Comments
-
valid = true;
message = "Please complete the following";
//Add your validation, setting the Valid to false and adding to the message
if (!valid)
{
alert(message);
window.event.cancel();
}
//this doesn't do anything but added for completeness.
return true;Cheers
Graham
0
Categories
- All Categories
- 123 Developer Announcements
- 54 Articles
- 153 General Questions
- 148 Thrust Services
- 57 Developer Hackathon
- 37 Thrust Studio
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 918 Core Messaging
- 84 Digital Asset Management
- 9.4K Documentum
- 32 eDOCS
- 190 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 10 XM Fax
- Follow Categories