In this paper, we prove Souplet-Zhang type gradient estimates for a nonlinear parabolic equation on smooth metric measure spaces with the compact boundary under the Dirichlet boundary condition when the Bakry-Emery Ricci tensor and the weighted mean curvature are both bounded below. As an application, we obtain a new Liouville type result for some space-time functions on such smooth metric measure spaces. These results generalize previous linear equations to a nonlinear case.