GlideForm - getUniqueValue()

Returns the sys_id of the record displayed in the form.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
String The record's sys_id.

function onLoad() {
   var incSysid = g_form.getUniqueValue();
   alert(incSysid);
}