To add script codes to your form:
1. Mouse over your form and click "Options", and then "Edit"
2. On the "Form Settings", click the "Edit" button under "Header/Footer"
4. Click "Save Form".