Workflow Hide Control By Value

bricast's picture

I know that you can hide controls by value but let say there is a second drop down is there a way to unhide one of the controls you hide previously based on what is selected in the second dropdown list?

reecardo's picture

You could set the Visible

You could set the Visible property of the control you want to hide/unhide to a dynamic model.

bricast's picture

Visible

Are you talking about the is visible property?  If so that doesn't help.  I need to change the visibility based on what the user chooses after the workflow is published.

reecardo's picture

That should still work. You

That should still work. You should be able to reference the "output" of selection/display items like textboxes/dropdowns within the dynamic model. In this case, you'd be referencing the output of the "other" dropdown object; if it has value, hide the current object, if it doesn't then don't.

bricast's picture

not sure I'm followin you

Could you give me a little more detail on what you mean?  I'm not sure I'm following what you mean.  If there an article that could look at that might give me more information?

bricast's picture

Dynamic Model

I think I know what you are talking about but I don't see Dynamic Model option when I click the elips next to visible.

stuper's picture

Dynamic Model

Bricast, here's a screen shot of the dynamic model on the Visible property:

imagebrowser image

Can you see this option on yours?

bricast's picture

Dynamic Model

I found the issue on why I could not find Dynamic Model.  It seems we are working on Altiris Workflow Solution 6.0.5 and Workflow Designer 1.0.1074.  After upgrading our test environment to Altiris Workflow Solution 6.5.1 and Workflow Designer 6.5.1302.1 I was able to see Dynamic Model under versions.  Thanks for all your help.

stuper's picture

No problem

Bricast, good, I'm glad you found it. I posted an article on the visible property here: www.symantec.com/connect/articles/hiding-and-showing-webforms-component-setting-visible-property

Jimbaland's picture

Having problems with this...

Hi Stuper,
I've tried multiple times to carry out the exercise in this model with no success. To play around, I set up a basic web form with a radio button list and a text box. So when a certain radio button it selected the text box control should disappear. I tried this via process variable and using the "disable control by value"  custom event pointed to the radio buttons. When I run it in debug its as if nothing has happened. Is there a step or configuration I may be missing somewhere? -Thanks in advance!

bricast's picture

RE: Having problems with this...

Hello Jimbaland,
Have you tried going into Visible and using a Dynamic Model?  That seem to have worked best for me and it was rather simple to setup.  In my case I have a bunch of dropdown list and depending on what I choose in one dropdown list other one will appear.  Here is an example of what I did.  Depending on what is selected in my first dropdown list a second one may enter so here is what I have in the Dynamic Model for the second drop down list.  The one I want to have appeared and disappear.  Here is a copy of what my Dynamc Model looks like in a screen shot.  I'm not sure how to do it with radio buttons as I have not used them yet.

Dynamic Model.jpg

Jimbaland's picture

Yeah, Still having trouble with this.

Thanks for the reply bricast, but this is still giving me a fit. I was able to set up a dynamic model, but not able to get the desired results. When I run my project in debug, I have to press Submit (or outcome component) for any changes to take place. Even then, it doesn't really work. I say doesn't really work because if the second drop down (the one I want to hide) is set to optional, the process completes. If it is required, the process won't complete unless something is selected in the dropdown. I guess what I'm asking is, in your example, is your hideable control become hidden as soon as you select the applicable value in the first control? Or do you have to click your outcome componnent. Also, if you could include some other screen shots containing configuration info for your controls/webform that would be helpful as well. I really appreciate you taking the time to help me with this. If you need any clarification, please let me know. -Thanks Again!!

bricast's picture

Another Question

Now that I can make drop downs visible or not is there anyway to make it so that if they select a certain thing from one of the drop downs it calls a different workflow.  I was trying to do this in the dynamic model for visible but TerminateAndTransferDialogFlow component is not available.  This there another component that would be available that would do the same thing as the TerminateAndTransferDialogFlow.

stuper's picture

re: Another Question

No, not in the dynamic model. You would need to do that out of the form. Would you really want to terminate the workflow as soon as the user selected an item in the drop-down? What if they picked the wrong one? 

bricast's picture

Another Question

If there were a way to launch the other workflow but make if so that if they picked the wrong think they could just hit the back button in IE that would be much better.

yliquor's picture

dialog workflow

Why not have thier selection of that value lead to your end component for the dialog workflow and then go to your next dialog workflow based on that value?  You could put in a simple form that confirms thier selection. 

 

stuper's picture

re: Another Question

You can't send them to another form or workflow from inside a dynamic model on a Visible property. The whole point of the visible property dynamic model is to determine whether the component should be shown or not.

The Drop Down component can't launch another workflow or exit the form based on selection. You could have the user make a selection and then click a button to exit the form, and then you could use decision components (like Matches Rule) to determine where to send them based on their selection. Have you considered the DynamicButtonComponent? That component has a lot of options for sending a user elsewhere based on selection. 

bricast's picture

DynamicButtonComponent

I when I type DynamicButton in the little search field it doesn't find anything.  Is it just a check box some where that allows me to change it to dynamic?

stuper's picture

DynamicButton

Make sure you are in the Web Form Editor. Typing "dynamic" should bring it up.
imagebrowser image 

bricast's picture

DynamicButton

When I type dynamic this is all I see.
imagebrowser image

Is there a libary that I need to import?

reecardo's picture

It looks like the Dynamic

It looks like the Dynamic button got introduced code-wise around the December timeframe. I can't remember the date specifics, but I think that means it would NOT be in 6.5, but it would be in the new 7.0 release.

bricast's picture

Dynamic Button Component

I have workflow 7 up and running to do some testing.  I'm trying to use the dynamic button component.  For contact I am using a dynamic model which has in it a matches rule that says if a certain value = PeopleSoft Global Help go to end and launch the following workflow.  There are not error on any of the components in the dynamic model but when I close out of everything and go back to the edit component I get Dynamic Model is not valid.  Below is a picture of my dynamic model.  I have the no match going to the same end temporally.

Altiris Dynamic.jpg