Forum Discussion
ROBERTSACHS
7 years agoQrew Cadet
I have a similar issue: I have a text field "Events" which I use to log events. Each event is just a text string:
DD/MM/YY text.
The events are listed LIFO (most recent first).
I would like to button to insert (append) the current date into the field. From there I'll type the text.
I tried the above (correct vat to var) and nothing happens. Here is what I have
var text URL = URLRoot() & "db/" & Dbid() & "?act=API_EditRecord" & "rid=" & [RecordID#] & "&_fid_44=" & URLEncode(Now());
"javascript:" &
"$.get('" &
$URL &
"',function(){" &
"location.reload(true);" &
"});"
& "void(0);"
where 44 is the field ID of the Events field.
Please advise.
DD/MM/YY text.
The events are listed LIFO (most recent first).
I would like to button to insert (append) the current date into the field. From there I'll type the text.
I tried the above (correct vat to var) and nothing happens. Here is what I have
var text URL = URLRoot() & "db/" & Dbid() & "?act=API_EditRecord" & "rid=" & [RecordID#] & "&_fid_44=" & URLEncode(Now());
"javascript:" &
"$.get('" &
$URL &
"',function(){" &
"location.reload(true);" &
"});"
& "void(0);"
where 44 is the field ID of the Events field.
Please advise.