How to determine if checkbox a checked or not
Posted on 2004-09-11
I'm extremely new to developing with LotusScript so please be as clear as possible. Thanks. Please excuse me if I use the wrong terminoligy.
What I want to do: I have created a custom form (based of the new memo form). On this form, I have a checkbox. If checked, I want specific people CC'd when the user clicks on the "Send" button. (I'm not using the "Send" button that comes with the memo form, I have created my own "Send" button).
So, here's the scenario:
1. User opens up form, and fills out pertinent info.
2. He checks the checkbox to include specific people in the CC field when message is sent
3. User clicks on the send button
I need to know how to verify if the checkbox is checked within the code of the Send Button.
This is what I have thus far for the checkbox field:
Checkbox Field name: CCMgr
For choices, I have added one one: "CC Upper Management | 1"
I have "Refresh fields on keyword change" checked
I have "Allow keyword synonums" checked.
And thats pretty much it. I have tried the following codes, but with no avail:
If .CCMgr.IsChecked = -1 Then Messagebox("checked")
If CCMgr = 1 Then Messagebox("Checked")
If CCMgr = True Then Messagebox("Checked")
If CCMgr(0) = 1 Then Messagebox("Checked")
Can anyone please help? Thanks in advance.