Allow configured inputType hidden for e.g. strings
(cherry picked from commit fd2e5b9)