I am aware that you are not able to use the onLoad attribute in a <form> like <form id"form" onload="javascript:test()">, you can only do this in a <body>
My question is, is there any attribute that you can put in the to call a function when the form is loaded or is there a different way to do this?
EDIT:
So like this is it
<form jwcid="form">
<script>
function checkForChange() {
var approvalStatus = document.getElementById('licensingStatus').value;
if(approvalStatus == "Pass"){
document.getElementById('licensingApprovalDate').setAttribute("validators", "validators:maxDateToday,required");
} else {
document.getElementById('licensingApprovalDate').setAttribute("validators", "validators:maxDateToday");
}
}
</script>
.....
Forms don’t use external data to build them (the body can load images, iframes can load external documents, etc).
So: