AnsweredAssumed Answered

Lock Time Field using button

Question asked by AnnetteSteinberg on Sep 27, 2011
Latest reply on Sep 27, 2011 by philmodjunk


Lock Time Field using button


 Good Morning,

I've created a Time Card layout that has for everyday six fields that would get the current time for timein/timeout for the AM/PM and Overtime. (Employees have to clock out for lunch).   I'd like to create a button script that Gets (CurrentTime) for that particular field and then locks it so no more modifications can be made.

Because all seven days  have 6 different fields I've tried to use a script using Get (ScriptParameter), but it's not working.

If [IsEmpty Get (ScriptParameter))] //this would be the AM/PM or overtime fields for each day

  SetField [Get (ScriptParameter);Get (CurrentDate)] //this brings up a box asking for an operator)

End if

Can you tell me what I am doing wrong, or point me in a better direction.

Thank you,