Added support for type='hidden'