Display variable containing field values

Hi,

This is a really basic question from a newbie.

I put this statement into the form script (“District_i.js”, but it only displays the “Created on” when run. I assume I need to detect an on record load event, but I’m not sure how to do it. dist_created_by is a timestamp field, and vFormInfo is displayed on a data entry form –

var vFormInfo = "Created on " + forms.District_i.dist_created_d.toDateString() + ", " + forms.District_i.dist_created_d.toTimeString() + " by " + forms.District_i.dist_created_by.toString();

Thanks so much,
Don

Hi Don,

I think it’s the way you try to format the data.
take a look under the ‘Utils’ node in Servoy and try ‘dateFormat’

Hope this helps