Trigger Formyoula Field Using Run Event

This guide will explain how to trigger the Formyoula field using the Run event.

  1. Initial Setup:
  • Drag and drop a “File Upload” and a “JavaScript" field onto your form.
  • Rename the fields as needed.
image
  1. 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
  1. Configuring The “JavaScript” Field:
  • Click the pencil icon of the “JavaScript” field.
  • Paste the run event code.
  • Save the changes.
image
  • Please use this code:
formyoula.form_fields[ '3a0b-02b2-55e3' ].trigger( 'run' );
  1. Test Your Form:
  • It will trigger the “File Upload” field on page load.
image
image

For any questions, please contact us - [email protected] or the Formyoula in-app chat. 🙂