This guide will explain how to upload multiple images simultaneously with one click.
We will explain two examples: uploading multiple photos AWS and uploading multiple Salesforce photos.
Multiple Photos AWS:
- Initial Setup:
- Drag and drop a “Repeat” field, and a “Photo” field inside it onto your form.
- Drag and drop a ”Field Update Button”, an “HTML”, and a “JavaScript” field onto your form.
- Rename the fields as needed.
- Configuring The “HTML” Field:
- Click the pencil icon of the “HTML” field.
- Paste the code.
- Please use this HTML code:
- Here,
3b98-b145-b313is the field ID of the “HTML” field.97e1-230d-d7bais the field ID of the “Photo” field.
- Please make sure to update the field IDs as per your form.
- Configuring The “JavaScript” Field:
- Click the pencil icon of the “JavaScript” field.
- Paste the code.
- Here,
3b98-b145-b313is the field ID of the “HTML” field.f965-4786-4937is the field ID of the “Field Update Button” field.e7df-62ab-95a9is the field ID of the “Repeat” field.
- Please use this JavaScript Code.
Paste this javascript for allowing multiple photos multiple times without removing the existing selections
- Please make sure to update the field IDs as per your form.
Multiple Salesforce Photos:
- Initial Setup:
- Drag and drop a “Repeat” field, and a “Salesforce Photo” field inside it onto your form.
- Drag and drop a ”Field Update Button”, an “HTML”, and a “JavaScript” field onto your form.
- Rename the fields as needed.
- Configuring The “HTML” Field:
- Click the pencil icon of the “HTML” field.
- Paste the code.
- Please use this HTML code:
- Please make sure to update the field IDs as per your form.
- Configuring The “JavaScript” Field:
- Click the pencil icon of the “JavaScript” field.
- Paste the code.
- Please use this JavaScript Code.
Use this javascript to allow multiple photos multiple times without removing the existing selections
- Please make sure to update the field IDs as per your form.
- Test The Form:
- Try the form.
- Click “Select Photos”.
- Choose multiple images from the gallery.
- It will upload the photos on the form.
Example Form.json22.3KB
Multiple Photos[Existing photos support ].json21.5KB
For any questions, please contact us - [email protected] or the Formyoula in-app chat. 🙂