added binddata script to set the values of form fields according to an object