Hiding empty variables on an approval form

If you have created a service catalog item that has an associated workflow, you may have found that all variables captured on the request are displayed on the approval form in the variable summary section.  Depending on how the catalog item is constructed, there may be a number of variables that you don’t want to be display or are simply empty because the fields were not relevant for the particular request.  There are two solutions to this based on if a field should never be displayed in the summary or only displayed if it is not empty.

The first case, when a field should never be displayed, is pretty easy.  By default, the form to manage a variable on a catalog item, does not display the option “Visible on Summaries”.  To enable this, you will need to Personalize the Form Layout of the Variable item view and move “Visible on Summaries” to the Selected side of the slush-bucket.  By default, this field is selected for all variables.

Continue reading