Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6029 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

Hello all. I need help to write a script (I think a script is what I need) that enters a timestamp in a field and also records the user name when a specific field is modified.

I have 3 fields: (1)"Status_Choice" - where manager chooses either "approved" or "denied" by a radio button; (2) "Status_Date" - is a timestamp of when the "Status_Choice" field is modified; (3) "Status_User" - captures the name of the user when "Status_Choice" is modified. I want fields 2 & 3 to update ONLY when field 1 is modified (when a choice is made), not if any other field on the layout/record is modified.

Thank you in advance for any help B)

Posted (edited)

Hi Robin! Welcome to FM Forums!! :wink2:

Attach an auto-enter calculation to your Status_Date with:

Case ( Status_Choice ; Get ( [color:red]CurrentTimeStamp ) ; Get [color:red]( CurrentTimeStamp ) )

... be sure you also do this: in the auto-enter tab below 'by calculation; you UNCHECK uncheck 'Do not Replace Existing Value...'. Also uncheck in calc box at bottom 'do not evaluate if all referenced fields are empty.'

The same would be for the Status_User field:

Case ( Status_Choice ; Get ( AccountName ) ; Get ( AccountName ) )

UPDATE: I originally had Get ( CurrentDate ) until I realized a timestamp was desired instead of date ...

LaRetta

Edited by Guest
  • Newbies
Posted

Hi LaRetta!

Thank you so much for all the help! It worked beautifully and did exactly what I was looking for it to do.

Thank you again for the help. B)

This topic is 6029 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.