JS Script doesn't work in CSP page
Hi, I try to do a JS script into a csp page for a Workflow
The problem is that in Ensemble i don't had troubles but in Iris don't recognize even the console.log inside the script
I attach the code
<form>
<table class="workflowtable">
<CSP:IF CONDITION='%task.%FormValues.IsDefined("montoDeposito")'>
<tr>
<td>
Monto Depositado:
</td>
</tr>
<tr>
<td>
<input type="text"
name="montoDeposito"
value="#(%task.%FormValues.GetAt("montoDeposito"))#">
</td>
</tr>
</CSP:IF>
<CSP:IF CONDITION='%task.%FormValues.IsDefined("numFolio")'>
<tr>
<td>
Numero de Folio:
</td>
</tr>
<tr>
<td>
<input type="text"
name="numFolio"
id="numFolio"
minlength="3" maxlength="6"
onload="document.getElementsByName('BTN_Validar Deposito')[0].disabled = true;"
onclick="if( this.value==''){
document.getElementsByName('BTN_Validar Deposito')[0].disabled = true;
return false;
}else {
document.getElementsByName('BTN_Validar Deposito')[0].disabled = false
};"
onchange="if(this.value.length < 3 || this.value.length >6 || this.value==''){
alert('Numero Folio debe tener entre 3 a 6 digitos');
this.value = '';
document.getElementsByName('BTN_Validar Deposito')[0].disabled = true;
return false;
}else {
document.getElementsByName('BTN_Validar Deposito')[0].disabled = false
};"
value="#(%task.%FormValues.GetAt("numFolio"))#"> </input> </td>
</tr>
</CSP:IF>
</table>
</form> <script language="JavaScript">
console.log('Entro al script')
function onLoad(form)
{
alert("Se ejecuto el onLoad");
console.log('onLoad');
return true;
}
function validaTest()
{
alert("Se ejecuto el validaTest");
}
</script>