Jump to content

DanielL

Members
  • Posts

    1
  • Joined

  • Last visited

DanielL's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Slight modification to get this to work - it appears that the ID now has a number appended to it (e.g., InsertRecordFIELDNAME_7647422799) . You can use the document.getElementsByName to find the first name in the array. <script type="text/javascript"> document.addEventListener('BeforeFormSubmit', function () { event.preventDefault(); var a = document.getElementsByName("InsertRecordFIELDNAME"); if (a[0].value > 100) { alert('Please enter number less than 100.'); } else { document.forms["caspioform"].submit(); } }); </script>
×
×
  • Create New...