this.FieldName1 = "name"; eval('this.Field1 = crmForm.all.' + this.FieldName1);
While I will not debate the merits of this code, which seems pretty useless to me, I will tell you I can’t convert this automatically. So again, this is a manual correction is required.
See what Transformer! for Dynamics CRM can do for you.