[BUG #8743] Set initial value when create hidden field
[BUG #8743] Remove unused variable