Autopopulate of field 2 is not working when field 1 changes in crm

Hi all,
when field 1 changes I have written the client script to populate in field 2
but it is working in the erpnext form page but not in the crm

is there any way to enable this feature, please let me know ?