Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 07/11/2019 in all areas

  1. 1 point
  2. 1 point
    kristina

    Phone number Formatting

    Hi @jafranklin77, I found another forum post that is quite similar to your inquiry. You can check it here: Thanks. -kristina
  3. 1 point
    kristina

    Phone number Formatting

    Hi @jafranklin77, You may also check the solution provided in this link: Hope this helps. -kristina
  4. 1 point
    MayMusic

    Phone number Formatting

    In this link, you can find how to refer to an element on different DataPage types
  5. 1 point
    MayMusic

    Phone number Formatting

    Are you trying the code on an update form or submission form? the format of the IDs you are referring to on an update/details page is different from submission. What is the link to the page where you have this code on which is throwing an error?
  6. 1 point
    DesiLogi

    Bulk Edit Auto-Submit

    Hi, Does anyone know how to put code in the footer of a Bulk Edit form so it auto-submits (so the user doesn't have to click the Update button)? This code: <script type="text/javascript"> if(document.getElementById("caspioform")) { document.getElementById("caspioform").style.display = 'none'; setTimeout('document.forms["caspioform"].submit()',1000); } </script> works only on a regular Update or Submission form. If you use it in Bulk Edit it just keeps refreshing the records over and over. So there must be some specific code for Bulk Edit. As well, if I can get Bulk Edit to auto-submit I'd like to remove he Update button so if anyone has code for that it'd be really great. Thanks!
  7. 1 point
    You can try to add a if statement to check and see if it is blank. For instance: <SCRIPT LANGUAGE="JavaScript"> function tel() { var message = document.getElementById("InsertRecordTEL").value; // here you get what the end-user typed if (message != "") { document.getElementById("InsertRecordTEL").value = (message.replace(/[^\d]/g, '')); // then you strip off all the spaces var message1 = document.getElementById("InsertRecordTEL").value; document.getElementById("InsertRecordTEL").value = ("(" + message1.substring(0,3) + ") " + message1.substring(3,6) + "-" + message1.substring(6,10)); } } document.getElementById("caspioform").onsubmit=tel; </SCRIPT>
×
×
  • Create New...