JSFiddle - React, Tailwind, and code Playground
by Ryan Perez
JavaScript
<div class="row">
<form id="contact-form" action="/FormProcessv2.aspx?WebFormID=103900&OID={module_oid}&OTYPE={module_otype}&EID={module_eid}&CID={module_cid}"
enctype="multipart/form-data" onsubmit="return checkWholeForm95521(this)" method="post" name="catwebformform95521">
<input type="text" name="FirstName" id="FirstName" placeholder="Your Name*" maxlength="255" />
<input type="text" name="EmailAddress" id="EmailAddress" placeholder="Your Email*" maxlength="255" />
<textarea name="CAT_Custom_20008133" id="CAT_Custom_20008133" placeholder="Message*" onkeydown="if(this.value.length>=4000)this.value=this.value.substring(0,3999);"></textarea>
<input name="Subject" type="hidden" value="{{name}} - {{item.['name']}}" />
<input id="formReset" type="reset" value="Reset" />
<input type="submit" value="Submit" id="catwebformbutton" />
<script type="text/javascript" src="/CatalystScripts/ValidationFunctions.js?vs=b2206.r502081-phase1"></script>
<script type="text/javascript">
//<![CDATA[
var submitcount95521 = 0;
function checkWholeForm95521(theForm) {
var why = "";
if (theForm.FirstName) why += isEmpty(theForm.FirstName.value, "Your Name");
if (theForm.EmailAddress) why += checkEmail(theForm.EmailAddress.value);
if (theForm.CAT_Custom_20008133) why += isEmpty(theForm.CAT_Custom_20008133.value, "Message");
if (why != "") {
alert(why);
return false;
}
if (submitcount95521 == 0) {
submitcount95521++;
//theForm.submit();
submitForm();
return false;
} else {
alert("Form submission is in progress.");
return false;
}
}
//]]>
</script>
</form>
<form id="webapp-form" class="hide" name="catcustomcontentform61534" onsubmit="return...