Could you query for inputs with type text in the dialog id and then clear all of them?