Displays

<form method="post" accept-charset="UTF-8">
    {# Default fields  #}
    ...
    
    <input type="hidden" name="displayHandle" value="displayHandle">

    <button class="sumit">Submit</button>
</form>

Attributes

  • displayHandle - Replace with your display handle name.

File Uploads

If you are uploading files you need to add enctype="multipart/form-data" to the form tag.

<form method="post" accept-charset="UTF-8" enctype="multipart/form-data">
	{# Default fields #}
	...

	{# for single files #}
	<div>
        <label>Product Screenshot</label>
		<input type="file" name="fields[fileHandle][]">
	</div>
	
	{# for multiple files #}
	<div>
        <label>Product Gallery</label>
		<input type="file" name="fields[fileHandle][]" multiple>
	</div>

...

Attributes

  • fileHandle - Replace with your asset field handle.