Support › MB Frontend Submission › Image/file field does not take validation
How do I make a file upload field a required field. I tried using required attribute but it doesn't work.
Thanks & Regards,
Can you specify what steps are you following.
Please have a look to upload field I have defined
'fields' => array(
'id' => 'eto_personal_photograph',
'type' => 'image',
'name' => esc_html__( 'Upload your photograph: ', 'tmi' ),
'desc' => esc_html__( 'Your photograph can only be in .gif, .jpg or .png format.', 'tmi' ),
'max_file_uploads' => '1',
'attributes' => array(
'required' => array( 'required' => "true" ),
'columns' => 12,
will this help?
Any update for this?
The only way I find out is, take the file field out of the group and take it as individual field.
This is a bug and I've just fixed it on Github. It's available in the new version soon.