I have a computed field with the following formula.
var time = "";
if(@IsNewDoc()==1) time = @Now();
else time = @Text(@GetField("FormCreated"));
return time;
The only wy I could get this to work is to wrap the @GetField("FormCreated") with @Text. The computed field is set as DateTime and FormCreated is an actual date/time value in the document.
Why does @Now not need @Text?