2291249 Modal display

This assumed how widget's form looks like. Is there another, more generic, way to do this?