Search code examples
lotus-noteslotusscript

Add value to checkbox field


I have a checkbox field on a Notes document that identifies the steps completed in a process. If the user enters a value in the TestDate field, I would like it to check the box for "Tested" in the Tasks field. For some reason, I can't figure out how to add the value if other checkboxes are already checked.

I've tried setting it using formula language in validation (@SetField), putting it as a back-end field change in the LotusScript QuerySave and using LotusScript in the onChange event. I'm sure it's simple, but today I just can't get my head around it.


Solution

  • In LotusScript, you should be able to do something like this:

    set item = doc.getFirstItem("Tasks")
    call item.AppendToTextList("Tested")
    call doc.save(true)