BUG-7802 In Advanced Search -> Information -> Dynaform, the Submit Button was enabled, like in edition mode.

I added a javascript code to disable the Submit Button on file 'workflow/engine/methods/cases/casesHistoryDynaformPage_Ajax.php'.
This commit is contained in:
jennylee
2012-11-20 10:58:11 -04:00
parent 7c1902a68e
commit 7c8b33049a
2 changed files with 4 additions and 5 deletions

View File

@@ -435,12 +435,11 @@ if ($actionAjax == 'historyDynaformGridPreview') {
$Fields['APP_DATA']['__DYNAFORM_OPTIONS']['NEXT_ACTION'] = 'return false;';
$Fields['APP_DATA']['__DYNAFORM_OPTIONS']['DYNUIDPRINT'] = $_POST['DYN_UID'];
?>
<script language="javascript">
window.onload = function () {
window.onload = function () {
var inputs = document.getElementsByTagName('input');
console.log(inputs);
for(var i= 0; i<inputs.length; i++) {
console.log(inputs[i].type);
if(inputs[i].type == 'button' || inputs[i].type == 'submit')
{
inputs[i].disabled = true;