GlideForm - getActionName()

Returns the most recent action name, or, for a client script, the sys_id of the UI action clicked.

Note: Not available in Wizard client scripts.
Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
String The current action name.

function onSubmit() {
   var action = g_form.getActionName();
   alert('You pressed ' + action);
}