Jump to content

pse_cs

Members
  • Content Count

    14
  • Joined

  • Last visited

  • Days Won

    2
  1. Hi, I am trying to use this approach but it isn't working. I'm hoping you can spot what is wrong with my code. First, in an html block, I have a show/hide fieldset that is triggered by a checkbox (i.e. check the box if you have a promo code and when the box is checked an input field appears to enter the code). This part works fine: ---------------------- I have a Promo code. Promo code ---------------------- But I need to validate that only acceptable promo codes are entered into the input field. Since we typically only have one or two codes out there, I thought a simple if, else if, else statement would work. As advised in the previous thread, I have placed the javascript in the footer. Here is my validation function: function validator(){ var promoValue = document.getElementById("InsertRecordPromo").value; var capValue = promoValue.toUpperCase(); if (capValue == "ABC"){ return true; } else if (capValue == "DEF"){ return true; } else { alert("Invalid Promo code!"); } } document.getElementById(\"caspioform\").onsubmit= validator;
  2. Do you have a timeframe when the Microsoft Office plug-in will be out of the beta stage? My company's IT dept will not allow any beta version products to be installed but we would very much like to use this plug-in.
  3. pse_cs

    Batch update

    Oh well, thanks for confirming my suspicion. Mybe they'll add it in the future
  4. pse_cs

    Batch update

    Is it possible to update an entire column of a table? The scenario... We have a field which indicates whether or not a record has been processed. This field is the query term used to filter records for the resulting table so that only unprocessed records are displayed. Our staff person typically processes all the new records in one sitting and would like to be able to click a checkbox at the top of the table column which would change all the no entries to yes rather than having to go into the details page for each record in order to change the entry as this is very time consuming.
×
×
  • Create New...