Q
Problem solve Get help with specific problems with your technologies, process and projects.

Checkbox that automatically stamps date and name

I have a "complete" checkbox that when checked, I would like it to automatically stamp a date and name. I have the @today and @username formulas, but the date refreshed upon document opening. I need the date to stay the same as when the box was checked. I have tried onClick and onChange with no luck. Can you please help?
It sounds like the fields are set to be computed to @today and @username. In that case, they will be updated every time the form is refreshed and saved. You should set the time stamp and name fields as Computed, but set the computed value to the name of the field. (Or set them to Computed when Composed and set the value to "".)

In Domino Designer, add LotusScript or JavaScript code to the field's onChange event. When the user changes the value of that checkbox field and then leaves the field, your code will be triggered. The code should check the value of the field (to ensure that it is now checked) and then set the time stamp and name fields to Today and session.CommonUserName, respectively.

Another option would be to remove the checkbox and instead create an action button or a hotspot button called "Complete" and put the @formulas on the button to set the time stamp and user name.

Do you have comments on this Ask the Expert question and response? Let us know.

Dig Deeper on Lotus Notes Domino Formula Language

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchWindowsServer

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchDataCenter

SearchContentManagement

Close