BUG 8691 Add validation before save on Task Notification.
- if the checkbox optiono was enabled "After routing notify the next assigned user(s).", validate that the fields are not empty or not selected, for both options when Content Type is "Plain text" or "HTML Template". - We performed the validation of the Subject and Message and Template selected fields.
This commit is contained in:
@@ -101,8 +101,10 @@ if (aTaskFlag[1])
|
||||
break;*/
|
||||
}
|
||||
getField('TAS_ASSIGN_VARIABLE').value = oTaskData.TAS_ASSIGN_VARIABLE;
|
||||
/*
|
||||
getField('TAS_MI_INSTANCE_VARIABLE').value = oTaskData.TAS_MI_INSTANCE_VARIABLE;
|
||||
getField('TAS_MI_COMPLETE_VARIABLE').value = oTaskData.TAS_MI_COMPLETE_VARIABLE;
|
||||
*/
|
||||
/*getField('TAS_DERIVATION').checked = (oTaskData.TAS_DERIVATION == 'TRUE' ? true : false);
|
||||
getField('TAS_PRIORITY_VARIABLE').checked = (oTaskData.TAS_PRIORITY_VARIABLE == 'TRUE' ? true : false);
|
||||
getField('TAS_ASSIGN_LOCATION').checked = (oTaskData.TAS_ASSIGN_LOCATION == 'TRUE' ? true : false);
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
<td>{$form.SEND_EMAIL}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='FormLabel' width="{$form_labelWidth}">{$TAS_DEF_SUBJECT_MESSAGE}</td>
|
||||
<td class='FormLabel' width="{$form_labelWidth}"><font color="red">* </font>{$TAS_DEF_SUBJECT_MESSAGE}</td>
|
||||
<td class='FormFieldContent' width='{$form_fieldContentWidth}' >{$form.TAS_DEF_SUBJECT_MESSAGE}
|
||||
<input type="button" onclick="showDynaformsFormVars('form[TAS_DEF_SUBJECT_MESSAGE]', '../controls/varsAjax', '', '@#');return false;" value="@#">
|
||||
</td>
|
||||
@@ -31,7 +31,7 @@
|
||||
<td class='FormFieldContent' width='{$form_fieldContentWidth}' >{$form.TAS_DEF_MESSAGE_TYPE}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='FormLabel' width="{$form_labelWidth}">{$TAS_DEF_MESSAGE}</td>
|
||||
<td class='FormLabel' width="{$form_labelWidth}"><font color="red">* </font>{$TAS_DEF_MESSAGE}</td>
|
||||
<td class='FormFieldContent' width='{$form_fieldContentWidth}' >{$form.TAS_DEF_MESSAGE}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<en>After routing notify the next assigned user(s).</en>
|
||||
</SEND_EMAIL>
|
||||
|
||||
<TAS_DEF_SUBJECT_MESSAGE type="text" size="50">
|
||||
<TAS_DEF_SUBJECT_MESSAGE type="text" size="50" required="1">
|
||||
<en>Subject</en>
|
||||
</TAS_DEF_SUBJECT_MESSAGE>
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
</en>
|
||||
</TAS_DEF_MESSAGE_TYPE>
|
||||
|
||||
<TAS_DEF_MESSAGE type="textareapm" cols="50" rows="10" group="1" showVars="1" process="@#PRO_UID" symbol="@#">
|
||||
<TAS_DEF_MESSAGE type="textareapm" cols="50" rows="10" group="1" showVars="1" process="@#PRO_UID" symbol="@#" required="1">
|
||||
<en>Message</en>
|
||||
</TAS_DEF_MESSAGE>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user