240 pts.
 How to get the value of a checkbox
Can anyone tell me how to get the value of a checkbox in Lotus script or Java script or formula?.

Software/Hardware used:
ASKED: July 31, 2008  1:03 PM
UPDATED: August 6, 2008  1:38 PM

Answer Wiki:
You can the value of your check box with Lotusscript by doing the following: Dim session as New NotesSesion Dim db as NotesDatabase Dim doc as NotesDocument Dim myVal as String Set db = session.CurrentDatabase Set view = db.GetView("MyView") Set doc = view.GetFirstDocument ' this will get the value of your field myVal = doc.MyCheckBox(0) this will either return the Value you gave it as a literal or an alias Hope this helps Joey --------------------------------------------------------------------------------------------------------- You'll need to look at the form in Designer and find out the actual name of the field. If it has multiple checkbox options, then the field will have multiple values if the user has selected more than one. For example, if the field name is MyCheckBox, and the user has selected Apples, Oranges, and Pears, then MyCheckBox(0) will contain "Apples", MyCheckBox(1) will contain "Oranges", and MyCheckBox(2) will contain "Pears". If the user has selected none of the options, then MyCheckBox(0) will contain "". LedLincoln
Last Wiki Answer Submitted:  August 6, 2008  1:38 pm  by  Ledlincoln   1,620 pts.
All Answer Wiki Contributors:  Ledlincoln   1,620 pts. , JMPICINICH   30 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _