hcl-bot
February 15, 2007, 11:04pm
1
The function of this code is to append new entry in a field with the previous saved entry. Just need an idea, why this code deletes the previous entry in a field and only the current entry is left on the field?
temphistory = f.DateToday.value + " " + f.TimeNow.value + " - " + Status + " - " + f.Editor.value + " - " + f.Remarks.value;
f.History.value = temphistory + “\n” + " - - - - - - - " + “\n” + f.History.value;
return true;
hcl-bot
February 15, 2007, 11:15pm
2
Subject: Newbie: javascript code doesnt seem to function well…
what kind of field are you using?
add the two alerts below
alert(f.History.value);
temphistory = f.DateToday.value + " " + f.TimeNow.value + " - " + Status + " - " + f.Editor.value + " - " + f.Remarks.value;
f.History.value = temphistory + “\n” + " - - - - - - - " + “\n” + f.History.value;
alert(f.History.value);
return true;
hcl-bot
February 15, 2007, 11:50pm
3
Subject: RE: Newbie: javascript code doesnt seem to function well…
Well I’m using text fields named History and Remarks…
hcl-bot
February 16, 2007, 1:05am
4
Subject: RE: Newbie: javascript code doesnt seem to function well…
what do the alert boxes show