Workflow Soluiton

 View Only
  • 1.  CheckboxList Component - How to Dynamic Update stored values?

    Posted Apr 01, 2011 03:20 PM

    Using the following example how can force a dynamic update of a web form to set the stored values in a CheckBoxList component to null and also uncheck the assdociated check box on the web form.

     

    I have a drop down selection component on a web form titled 'Type' in which the user can select URL or PDF.

     

    If they select URL a TextBox component becomes visible and the can type a url in. I use an AddDataElement component in the model that checks the selection to clear this variable out so that if the user selects PDF the URL text box is set back to hidden as well as set to an empty string value.

    If they select PDF a CheckBoxList component is displayed with multiple 'checkable' options (Option 1, Option 2, option 3) I assume this creates an array? I used a similar model that checks to see if URL was selected and if so it hides the CheckBoxList and also uses an AddDataElement to set the CheckboxList variable (flagged as array) to an empty string value.

    This works perfectly for the text box, it hides/unhides and clears the value out as expected.....the CheckBoxList however does not. Although it hides/unhides properly the checkboxes for each option remain checked?

     

    What's strange is that if I click 'Next' to go to the next web form (this workflow collects data by displaying multiple web forms) and then immediately click 'back' to come back the checked options are in fact unchecked?

     

    I desperately need a way to dynamically uncheck the option in the CheckBoxList component without navigating away from the form the user is on?

     

    Help?????!



  • 2.  RE: CheckboxList Component - How to Dynamic Update stored values?

    Posted Apr 01, 2011 03:26 PM

    Side thought, would I need to do some sort of loop?

     

    For each value up to 'count'

     clear the value

    Next

     

    I don't have any programming background so not sure how to do this?



  • 3.  RE: CheckboxList Component - How to Dynamic Update stored values?

    Posted Apr 13, 2011 03:22 PM

    As far as the visibility of your textbox goes on PDF selection, you could just add a custom event for Disable or Hide ControlIfValue



  • 4.  RE: CheckboxList Component - How to Dynamic Update stored values?

    Posted Apr 20, 2011 09:19 AM

    Thanks for the idea, however I'm not having any difficulty hiding or making the CheckBoxList visible...my problem is that if the user checks off any of the checkboxes but then changes their mind and flips the option to URL, the CheckBoxList hides itself but retains the values that were checked off, these values would then be passed into an incident which I want to avoid.

     

    I'm trying remove, re-initialize, and reset data to try and clear out the data but I cannot get it to work with the CheckBoxList, the simple text box does clear out properly?

     

    Is there some compnent that completely refreshes the entire web form?