Only clear :visible inputs in FormUtils

Fixes PMT #98178