I would like to have a button that will, upon being clicked, populate a field with the current time(@now)and another to click when finished
I am trying to record start and finish times for tasks without having to enter them, just click on start/finish
Could someone point me the way or should I be looking at this some other way?
I would prefer formula instead of script if possible
Thanks
Subject: Button to populate a field with time
Hi John,
Try having your start button set the start time on the document you are editing and then have it open a dialog box to do the task you are tracking the time on…
This button should have code like:
@SetField(“YourStartDateTimeField”;@Now);
@DialogBox(look at the help database but be sure to use the NOOKCANCEL option)
Then perform the tasks you would like on the dialog box.
Create a Finish Button on the dialog box that users click and again have the code behind the button do:
@SetField(“YourEndDateTimeField”;@Now);
@Command([RefreshParentNote])
this should pretty much cover it. Goodluck!
Mark