Hey guys, am having a minor issue with two fields within a form.
The form works fine on insert, which I copied to create a new form to update, ie two separate forms (created from the initial (working)).
On update I get two errors:
Error
Start Date: Invalid data
- the date is as DATE format within the DB and form, funny that on insert it works fine, but on update even with the date already available from db I get the above error.
Little stumped on this one as I dont find any issues with the forms. I even created a new form to test for insert and update, which works fine… so why am I getting this error when the form is locked to update only???
The second field is only available on update which is a TIME field, i.e. hours, minutes and seconds.
On form open the field displays the time format: HH:II:SS and of course tells me incorrect format on update/save of form. (yet the time may not be ready to be inserted yet…)
I tried adding the below into the OnScriptInit and OnBeforeUpdate, but as the field already has the HH:II:SS it doesnt apply the 0’s to solve that…
if(!empty({timecalc}))
{
{timecalc} = ‘00:00:00’;
}
Any ideas for those annoying little issues? Please Share!
