Zum Hauptinhalt gehen

Toggle Visibility of Form Items from a Check Box

Kommentare

5 Kommentare

  • Denise Beckham
    That worked perfectly!  Thank you so much, Nico!  You're awesome!
    0
  • Permanently deleted user
    Following up with a slightly more complex version:

     

    I have 5 checkboxes and want to make a group visible when 2 or more or checked.

     

    Setting the visibility in the Form Designer works great for the group visibility contingent on one checkbox, but I can't find a way to have visibility contingent on multiple checkboxes.

     

    I've tried entering both checkbox ids into the Form Designer, which didn't work (e.g. CheckBox2 and CheckBox3).

     

    I've also tried assigning the Group visibility in the RuntimeModifications. I've used this successfully in other workflows to set group visibility, but never based on another form element (i.e. I've used data values as conditions). In a simplified effort to just use RuntimeModifications for this task at all, I tried using an If statement with the following settings:

     

    Condition form.Find(Of CheckBoxFormItem)("CheckBox2").Checked

     

    Then Assign form.Find(Of ContainerFormItem)("Group6").IsVisible = True

     

    Else Assign form.Find(Of ContainerFormItem)("Group6").IsVisible = False

     

    Should this work/is this a limitation of Essentials Workflow? Is this something that would only be available using the dynamic forms of Workflow5?

     

    Thanks,Jena
    0
  • Permanently deleted user
    Hi Jena,

     

    You can set like this:

     

     

    form.Find(Of ContainerFormItem)("Group6").VisibleControlID=form.Find(Of CheckBoxFormItem)("CheckBox2").ItemID
    0
  • Permanently deleted user
    Ming Gang Shao -

     

     

    Thanks for the suggestion, but I am ultimately trying to set the visibility of that group based on 2 checkboxes.

     

     

    Using the VisibleControlID property does allow this to be done in the runtime modifications, but I can't get it to work with multiple inputs (e.g.  form.Find(Of ContainerFormItem)("Group6").VisibleControlID=form.Find(Of CheckBoxFormItem)("CheckBox2").ItemID & form.Find(Of CheckBoxFormItem)("CheckBox3").ItemID ).

     

     
    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.