I am maybe misunderstanding, but I would do that
A Timestamp field "Clock in"
On the layout : a field with field entry not allowed in any case OR a text <<Clock in>>
A button with a Button Setup : "Perform Script" [Clock in script]
A script "Clock in script" :
If ( "Clock in" = "" )
Set Field "Clock in" : Get ( CurrentTimeStamp )
You can also use a Text Object instead of a Field Object to show the time by inserting a Merge Field. And make it as a button to call the script for updating time. That is, if you don't want anyone including you to "manually" change the time. You may also want to resctrict them from updating when there's already a timestamp by using a switch. (Wait I just read Yuichi's post and this is the same as his)
If you want only certain group of users like the "[Full Access]" users to be able to manually change it, you can use the OnObjectEnter Script Trigger on the field object and create a script that will Commit the record if the Get ( AccountPrivilegeSetName ) ≠ "[Full Access]".
How do you set a "field entry/edit not allowed in any case"?
I have slected that a user can not overwrite and I have also unclicked the browse button on this field but it still gives the user the option to edit after they hit the button. I dont want them to edit at all after they hit the button.
If I have a field, and go to the Inspector / Data / Behavior / Field entry and I unchecked Browse Mode, Find Mode, Select entire contents on entry
Then the entry shous not be allowed in any case.
Maybe make sure that under layout mode, if you do a right click on the field, Button Setup.. is set do "Do Nothing"
That the weird part. All of those are unchecked but it is still allowing the edit. I have it set as a button inserting time and date, becauase you cant get a button function when it is just on time stanmp mode. I believe it may have something to do with the script, but I cant seem to get past this one.
Any other suggestions?
Thanks for helping so far.
Maybe you should paste the script here.
But as I said on my first message : maybe a separation between the button and the display.
A button which update the field content.
A field wich display the field content. (Browse unchecked, and not set as a button)