This guide will explain how to trigger the Formyoula field using the Run event.
- Initial Setup:
- Drag and drop a “File Upload” and a “JavaScript" field onto your form.
- Rename the fields as needed.
- Configuring The “File Upload” Field:
- Set up your “File Upload” field as needed.
- Note: You can check out this guide to attach a file to a newly created record using the “File Upload” field- https://guides.formyoula.com/public-guides/attach-a-file-to-a-newly-created-record-using-file-upload
- Configuring The “JavaScript” Field:
- Click the pencil icon of the “JavaScript” field.
- Paste the run event code.
- Save the changes.
- Please use this code:
formyoula.form_fields[ '3a0b-02b2-55e3' ].trigger( 'run' );
- Test Your Form:
- It will trigger the “File Upload” field on page load.
For any questions, please contact us - [email protected] or the Formyoula in-app chat. 🙂