Jump to content


Caspio Ninja
  • Posts

  • Joined

  • Last visited

  • Days Won


Community Answers

  1. nkamalan's post in Change data entered into form fields to Uppercase was marked as the answer   
    Hello, You can refer to a Caspio field in submission form in this format: "InsertRecordFIELDNAME". In the following code you need to replace FIELDNAME with the real field name you have. You can place it in the footer of the DataPage. 
    <script type="text/javascript"> function upperCase() { var y = document.getElementById("InsertRecordFIELDNAME").value; document.getElementById("InsertRecordFIELDNAME").value = y.toUpperCase(); } document.getElementById("caspioform").onsubmit = upperCase; </script>  Hope that helps. Regards, NKamalan
  2. nkamalan's post in onclick action with checkbox was marked as the answer   
    If it is in a webform you can add a Header/Footer and paste something like:

          var o_checkbox = document.getElementById("InsertRecordFIELDNAME1") ;
          function f_event(){
                if (o_checkbox.checked) {
                      document.getElementById("InsertRecordFIELDNAME2").value = "XXXX";
                } else {
                      document.getElementById("InsertRecordFIELDNAME2").value = "YYYY" ;
          o_checkbox.onclick = f_event ;

    FIELDNAME1 is the checkbox filed name and FIELDNAME2 is the name of field that you want to change the value.
  • Create New...