I am developing a web map application in ArcGIS Web Appbuilder and I have Tile services (layers) with several sublayers. I defined one sublayer to be vissible on the legend and all others to be hiden from the legend for all the services in Portal map viewer. This property seems to persist in my Web appbuilder which was what I wanted to be, but when ever I printed a map the print widget includes all the legends of the layers (hiden) in my print out.
I created a custom pritner with my custom templates created in ArcGIS desktop. whenever I restricted the size of the legend in my map templates in the legend property it seems to print the legend of the first layer in Web appbuilder. If the space for the legend is too small nothing is printed in the contary if the space is too big it prints many more layers legend.