Jump to content

IMDora

Caspio Ninja
  • Content Count

    28
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by IMDora


  1. Hi @edujobs2k18,

    Are you referring to your script for TimeStamp or the one for the Update Form? If you're referring to the script above, you can implement that by editing your DataPage and follow the steps below:

    a. Add a Header and Footer.

    b. Go to the Header and disable the HTML editor by going to the Advanced tab and unchecking the box next to "Enable HTML editor".

    c. Click the Standard tab.

    d. Add the script that you have.

    Let me know if you still need help on the Update Form.


  2. Hi @edujobs2k18,

    Yes, if you already used a field in a rule, you can no longer use it. What I would suggest it to create a simple JavaScript that will get the value of "Documents Remarks", and if the value is "Approved" then you can disable the "Document" field.

    Note: You need to make sure that the "Documents Remarks" field is visible or in that form so we can get the value.

    Regards,

    @IMDora


  3. @abitaquest,

    There's a possibility that the reason it's not working now is because of the recent Caspio update. Event like onsubmit will no longer be supported and you need to use Caspio's built-in event handlers. Kindly please check the link below for more information:

    https://howto.caspio.com/release-notes/caspio-bridge-13-0/13-0-impacted-areas/

    https://howto.caspio.com/datapages/ajax-loading/

    I hope this helps.


  4. Hi waltmayo,

    This is now possible with the new 13 Release of Caspio, you can do this by enabling AJAX on your DataPage. 

    Here's more information about AJAX: 

    https://howto.caspio.com/release-notes/caspio-bridge-13-0/

    https://howto.caspio.com/datapages/ajax-loading/


  5. Hello Logan,

    To force the letters inputted to be capitalized you can use this JavaScript code:

    <script type="text/javascript">
    function uppercase(field)
    {
    return function ()
    {
    field.value = field.value.toUpperCase();
    }
    }

    var fields = document.querySelectorAll('input[type="text"][id^="InsertRecord"]');
    fields.forEach(
    function (field, index)
    {
    field.oninput = uppercase(field);
    }
    );
    </script> 

    Hope that helps.

     


  6. Hello aschild,

    To add a search bar for a multi-select listbox, what you need to do is add an HTML block before  your Multi-Select Listbox Element and put in this code:

    <input type="text" id="myInput" placeholder="Search">
    <script>
         document.getElementById('myInput').onkeyup = function(event) {
              var items = document.getElementsByClassName('Item');
              for (var i = items.length - 1; i >= 0; i--) {
                   if( items.getElementsByTagName('label')[0].innerHTML.toLowerCase().indexOf( document.getElementById('myInput').value ) < 0 ) {
                        items.style.display = 'none';
                   } else {
                        items.style.display = 'block';
                   }
         }
    }
    </script>

    Let me know if this helps.


  7. Hi roattw,

    You can add this code in your styles:

    input[type="checkbox"]
            {
                -webkit-appearance: checkbox;
            }
     

    or this code on the header of your DataPage:

    <style>

    input[type="checkbox"]
            {
                -webkit-appearance: checkbox;
            }

    </style>

    You can add do this if above code does not help

    -webkit-appearance: checkbox !important;

    Hope that helps.

×
×
  • Create New...