by
kenkaen » Wed Jun 01, 2016 1:17 pm
what if you have 5 file uploads. how can you make the other 4 to be optional??
i have 5 file uploads and working properly..
one thing i can't figure out is how i can make the other 4 file upload "optional" , or all of them...
i have these..
- Code: Select all
<div class="send">
<input type="file" name="my_file_ex">
<input type="file" name="my_file2_ex">
<input type="file" name="my_file3_ex">
<input type="file" name="my_file4_ex">
<input type="file" name="my_file5_ex">
</div>
<br />
<cms:input
type="hidden"
name="my_file"
required='1'
validator='EmailEx::validate=max_size:10000&allowed_ext:jpeg,jpg,gif,png,txt'
value='1'
/>
<cms:input
type="hidden"
name="my_file2"
required='0'
validator='EmailEx::validate=max_size:10000&allowed_ext:jpeg,jpg,gif,png,txt'
value='1'
/>
<cms:input
type="hidden"
name="my_file3"
required='0'
validator='EmailEx::validate=max_size:10000&allowed_ext:jpeg,jpg,gif,png,txt'
value='1'
/>
<cms:input
type="hidden"
name="my_file4"
required='0'
validator='EmailEx::validate=max_size:10000&allowed_ext:jpeg,jpg,gif,png,txt'
value='1'
/>
<cms:input
type="hidden"
name="my_file5"
required='0'
validator='EmailEx::validate=max_size:10000&allowed_ext:jpeg,jpg,gif,png,txt'
value='1'
/>
i tried to put required='0' but they are still required on submit.
any solution? thanks in advance..