1 Reply Latest reply on Oct 3, 2012 1:48 PM by philmodjunk

    Timestamp and text button?

    KellyBryarly

      Title

      Timestamp and text button?

      Post

           Hello,

           I know this reflects my ignorance  but >>>>

           I would like to create a button that inserts a timestamp and also a text comment into a field. I can get one or the other, but how can I include both?

           Kelly

        • 1. Re: Timestamp and text button?
          philmodjunk

               You can, but I don't recommend that you do so in most cases. using one field for the timestamp and one for the comment inside a portal to multiple related records is usually a much more flexible option.

               Set Field [YourTable::TextField ; List ( Get ( CurrentTimeStamp ) & " Your Comment Goes Here." ; YourTable::textField ) ]

               Will insert the timestamp and specified text at the beginning of any text already in the text field.