Skip to main content
Question

Now() vs now easter egg

  • Dec 7, 2020 1:53 PM UTC
  • 0 replies
  • 160 views

MarkShnierYou
Forum|alt.badge.img+24
Just thought I would pass a tip along that I recently learned from a Quick Base staffer.

Whenever you use a formula URL button and are trying to populate a date time field with the current date and time on a Button click,  a problem I have always run into is that the button can get stale sitting on the screen.  
Here was my typical partial syntax.

URLRoot() & "db/" & Dbid() & "?act=API_EditRecord&rid=" & [Record ID#] & "&_fid_154=" & Now()

But if you use this syntax, the system will stamp the date time the screen was loaded (and could be sitting there getting stale) as opposed to what you really want which is the time that the button was clicked.

But this alternative partial syntax will give you the time the button was clicked regardless of how stale the screen load is..

URLRoot() & "db/" & Dbid() & "?act=API_EditRecord&rid=" & [Record ID#] & "&_fid_154=now"

------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
mark.shnier@gmail.com
------------------------------
This topic has been closed for replies.

AdamKeever1
Forum|alt.badge.img+2
  • Qrew Commander
  • Dec 7, 2020 2:06 PM UTC
Thanks for the info @Mark Shnier (YQC).​

------------------------------
Adam Keever
------------------------------

Forum|alt.badge.img+2
  • Qrew Cadet
  • Dec 14, 2020 5:04 PM UTC
Nice!!  Thanks.

------------------------------
Suzy Kania
------------------------------

Amazing, I was JUST about to make a post with the staleness issue. Thank you!!

------------------------------
Elena Larrabee
------------------------------