Jump to content

LeonardYong

Members
  • Posts

    6
  • Joined

  • Last visited

LeonardYong's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. You are a Caspio Ninja indeed! AWESOME it worked! Thank you so much ccarls and iren for contributing!
  2. Haha both threads posted by me. I do not know how to delete this one tho. Sorry everyone for any inconvenience!
  3. Yes I tried EditRecord however it doesn't work. Because if you realize the function is triggered by mouse over of the SUBMIT button as seen from getElementById ('Submit') and there are no fields to edit as all Input fields are virtual in the first place. EditRecord can work using .onLoad = concatenate but all fields must be actual fields not virtual.
  4. Hi Guys, I have successfully employed the following script in a Submission Form to concatenate several virtual fields into one actual field upon mouse over. <script> document.getElementById('Submit').onmouseover = function(){ var date = document.getElementById('cbParamVirtual1').value; if(date == "") date = "1/1/2011"; var hour = document.getElementById('cbParamVirtual2').value; if(hour =="") hour="00"; var minute = document.getElementById('cbParamVirtual3').value; if(minute == "") minute = "00"; var second = document.getElementById('cbParamVirtual4').value; if(second == "") second = "00"; var ampm = document.getElementById('cbParamVirtual5').value; document.getElementById('InsertRecordActual_DateTime').value = date + " " + hour + ":" + minute + ":" + second + " " + ampm; }; </script> However, this does not work in an Update Form. I've tried changing the getElementById ('Submit').onmousover to getElementById ('Update').onmouseover thinking that this would work as the button on an update form is the UPDATE button instead of the SUBMIT button. This was to no avail. Any ideas??
  5. Some clarifications: 1. Concatenation .onmouseover works in a submission form 2. I'm trying to get it to work on an update form
  6. Hi Guys! http://howto.caspio.com/tech-tips-and-articles/common-customizations/separate-input-fields-for-datetime-parts/ was very helpful in allowing multiple virtual date/time fields to be combined into one actual field. The javascript needed for this to work starts with document.getElementById ('Submit').onmouseover = function {myscript} When you mouse over the 'Submit' button, it activates the function. I've tried changing the word 'Submit' to 'Update' or 'cbUpdateButton' as there is no 'Submit' button on an Update Form. This was to no avail. Please help!
×
×
  • Create New...