Hi Xiang Li,
Thank you so much for your help, actually i got the solution by changing my form to dynamic form in form properties under EDIT and wrote the hidden code as you have suggested above in my body page.
Thank you so much for your support, will reward you points.
Regards,
Vadivu