Jump to content


Popular Content

Showing content with the highest reputation on 09/19/2019 in Posts

  1. Hi @VA123, You can try to use my code below, I've created a Submission form with two text box. If you have inputted 'ABC' on the first text field and 'XYZ' on the second field it will throw an error message. Else the form will be submitted. This is the deployed URL so that you can see how it works. https://c5eib829.caspio.com/dp/d90b6000106528eabab84e64b6ea This is the code that I've formulated, I think you can use the code below, you will just need to change the ID of my text box, to the ID of your fields in your DataPage. <script> document.querySelector('#caspioform').onsubmit = function(e) { e.preventDefault(); input1 ="ABC"; // Just replace the ID of your fields in document.getElementById("ID of your field").value; var input1= document.getElementById("InsertRecordValue1").value; var input2= document.getElementById("InsertRecordValue2").value; if (input1 =="ABC" && input2 =="XYZ" ){ alert('You cannot have ABC in the first field, and XYZ in the second field'); } else { this.submit(); } } </script> I hope this helps. Regards, TsiBiRu
    1 point
  • Create New...