Announcement

Collapse
No announcement yet.

Template Wizard question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Template Wizard question

    Ok, maybe im working too hard but I cant get the script below to work. Basically i have 2 check boxes. Depending on what boxes are checked it changes the text box value. So if box 1 is checked the text box should be "Box 1 is checked" If box 1 & 2 are checked then the text box says "Box 1 & 2 are checked"

    For some reason its not working. The script is below:

    Sub H1(Sender)
    if Box_One.Checked = true then
    TextFiller.UTF8Text = "Box 1 is Checked"

    elseif Box_One.Checked = true and Box_Two.Checked = true then
    TextFiller.UTF8Text = "Box 1 and 2 are Checked"

    end if
    End sub

  • #2
    Code:
    Sub H1(Sender)
        If (Box_One.Checked = True) And (Box_Two.Checked = True) Then
           TextFiller.UTF8Text = "Box 1 and 2 are Checked"
        ElseIf Box_One.Checked = True Then
           TextFiller.UTF8Text = "Box 1 is Checked"
        ElseIf Box_Two.Checked = True Then
           TextFiller.UTF8Text = "Box 2 is Checked"
        Else
           TextFiller.UTF8Text = ""
        End If
    End Sub

    Comment


    • #3
      Thanks Josef!!!

      Comment

      Working...
      X