I need to update a time field with the time a

I need to update a time field with the time an activity stops with the actual โ€œnowโ€ time.

Either automatically when I save the record, or manually just before saving the record.

Any recommendations?

Solved Solved
1 7 433
1 ACCEPTED SOLUTION

In the action configuration, you can set a condition for when it will take effect. Set that condition to the expression, ISBLANK([Stop time]).

View solution in original post

7 REPLIES 7

@Rick_Haden

EASY!

Automatic upon Save would be slick, and Iโ€™m pretty sure itโ€™s doable but I would set up a โ€œStopโ€ button for this. Youโ€™ll need two columns [Stop Now] and [End Time].

[Stop Now] will be a one option Data Validation column in your Spreadsheet, to make it a Button in your App, you must check โ€œReject other valuesโ€ when setting up Data Validation in your Sheet.

Upon Regeneration of that Table in your App, this column will/should be set as an Enum column.

If this column isnโ€™t automatically set to display as a Button, go in and change that so itโ€™s a Button.

Set your [End Time] column as a Change Timestamp and add โ€œEnd Timeโ€ (no quotes) as the trigger column.

Now, when you click the โ€œStopโ€ button, it will add current Date/Time to [End Time]. You could set up both options and then track how much time they wasted between manually clicking Stop button and actually Saving the recordโ€ฆHAHA, thatโ€™s the long-time Service business owner coming out of me!

@Rick_Haden Another option, assuming you already have a column to record the time, create an action that updates that field and set the action to โ€˜Do Not Display.โ€™

In the UX editor, set the โ€˜Event Actionsโ€™ , Form Saved to trigger that action. This will update the time when the form is saved.

@Rick_Haden Did you make this work?

@Michaelโ€™s suggestion is the right one.

Great thanks @Steve,
I got @Michaelโ€™s solution to work

I would like to refine it a little, and any help would be appreciatedโ€ฆ

How can I stop the STOP button appearing, if the record has a Stop time recorded, or perhaps more correctly, only appear if there is no data in the Stop time field?

In the action configuration, you can set a condition for when it will take effect. Set that condition to the expression, ISBLANK([Stop time]).

Beautiful - that worked @Steve . Itโ€™s super helpful to be able to get tips/answers like this, as it sets me on a path of knowing better where to look for answers. So big thanks!

Top Labels in this Space