added getFormData which gives the available form options in json format