Tree View Customization in Task

I have made customization in Task Doctype of PMS…On Form i’ve written Client script for the functionality i want in my customization…now when i create task from Tree View…that Client script isn’t working…how can i make this customization work in Tree View of task