Jump to content

Concatenation Does Not Work In Update Forms

Recommended Posts

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.


document.getElementById('Submit').onmouseover = function(){

var date =


if(date == "")

date = "1/1/2011";

var hour = document.getElementById('cbParamVirtual2').value;

if(hour =="")


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;



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??

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Hello cogclou3,


I would recommend to change document.getElementById('Submit').onmouseover to document.getElementById('Mod0EditRecord').onmouseover and

document.getElementById('InsertRecordActual_DateTime') to document.getElementById('EditRecordActual_DateTime')


Hope it helps.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...