Jump to content

ShWolf

Caspio Guru
  • Content Count

    105
  • Joined

  • Last visited

  • Days Won

    3

Reputation Activity

  1. Like
    ShWolf got a reaction from lmooring in javascript newbie - alphanumeric restriction   
    Hi,
    Try this code:

    <script language="JavaScript"> function checkAlpha1(v_plate){ if(v_plate.value.match(/[^0-9A-Z]|Q|O/)){ alert("Only capital letters or numbers are allowed in this field"); return false; } return true; } function checkAlpha2(v_plate){ if(v_plate.value.match(/[^0-9A-Z]|Q|O/)){ alert("Only capital letters or numbers are allowed in this field"); return false; } return true; } document.getElementById('Submit').onclick = function(){ if(!checkAlpha1(document.getElementById('INSERT_YOUR_FIELD_1_ID_HERE'))) return false; if(!checkAlpha2(document.getElementById('INSERT_YOUR_FIELD_2_ID_HERE'))) return false; } </script> And replace INSERT_YOUR_FIELD_1_ID_HERE and INSERT_YOUR_FIELD_2_ID_HERE with your field ids. Also change criterias in the script for fields, as you need.
    Let me know if this helps.
  2. Like
    ShWolf reacted to MayMusic in Search By Year   
    In the search page for this field try to add criteria to the field and select OR as the operator between values. But you only have Date, Date and Time, Month and Year and Year options you cannot only choose Month !!! Give it a try and let me know though.
     
    To add criteria to the field highlight the field name in Configure Search Field screen and then from the picker where you add HTML Block/Header/Footer you can also select Criteria
  3. Like
    ShWolf got a reaction from PlurnlopsBurn in How To Redirect User To The Selected Value From The Dropdown   
    How can I redirect user to the selected value in the dropdown right away after selection?
  4. Like
    ShWolf got a reaction from jonathanr in Get Chart Values   
    Hi theconav,
     
    Try to use single quotes with static value:
    SELECT SUM(Points) FROM Points_Table WHERE Audit_Entity='XX'
    Seems this works well
  5. Like
    ShWolf got a reaction from jonathanr in Styling Checkboxes And Dropdowns   
    Hi, Michael
     
    You can use custom css styles on your page or use jquery html selector .style
×
×
  • Create New...