Form Script Not Work When I Open from Report Edit Menu

Form Script Not Work When I Open from Report Edit Menu

Hi, 

i wrote some script for my form and they working well. But when i open a form with edit menu in report scripts not work at all. For example i use some hide, diasble script for some fields. But i open the form from report edit menu all hidden fields are appear and all fields enable. How can i fix that. Add some codes to a report? or add a diffrent edit button to report. Can you help me? Thank you... 

(i am sorry for my English if confused)