Responsive Checkbox

From FeMR Wiki
Jump to navigation Jump to search

This one is a little tricky. When a checkbox is clicked, nurse initials will be placed in a text field and today's date will be populated.

        Dim strDate As String
        strDate = System.DateTime.Now.ToString("MM/dd/yyyy")

        If cbCCC.Checked = True Then
            txtTTTDate.Text = strDate
            txtTTT.Text = Session("sesNurseInitials")
            txtTTTDate.Text = ""
            txtTTT.Text = ""
        End If

Similar to signature boxes, the CCC will be replaced with the checkbox name. TTT will need to be replaced the text name for this row to be easily copy and pasted.