Using the ability to set form elements visibility, expandable file collectors can be added to Virtual Ticket forms.
With the release of Workgroups 2010, Virtual Ticket allows programmatically hiding or showing any form elements. Using this feature, an expandable file collector can be added to your Virtual Ticket form. The solution involves the layering of a hidden expanded file collector on top of the visible form elements. Then by adding some simple MetaScript to the click action of form buttons, showing or hiding the the expanded file collector can be accomplished.
Start by going into the design view of your form. It works best to build the draft copy of the expanded file collector off to the side of your form.
Here, place a new file collector of the desired expanded size and link it to the same data field as the smaller file collector. Set the file collectors Id property to fc_Big and its Visibility property to Always Hidden.
Add a form button to the upper right corner of the small file collector. In the Label property enter
and enter btn_Big in the Id property.
In the Click Action property field enter this:
| Form.getControlById( 'fc_Big' ).style.visibility = "visible"; |
| Form.getControlById( 'btn_Small' ).style.visibility = "visible"; |
Add a form button to the upper right corner of the expanded collector. In the Label property enter
, enter btn_Small in the Id property and set its Visibility property to Always Hidden. In the Click Action property field enter this:
| Form.getControlById( 'fc_Big' ).style.visibility = "hidden"; |
| Form.getControlById( 'btn_Small' ).style.visibility = "hidden"; |
Temporarily expand the form's width property to include this expanded file collector so that you can see it while testing.
Test the functionality of the buttons. If it works well, place the expanded file collector and the
button directly over the smaller collector.
