Fixes #1998 : get input value from hidden field when necessary