How to make upload component required?

                            <upload id="ssm_businessInformationForm"/>

image

Hello @hon.jan,

You can use fileUploadField and set required=true in the XML descriptor or in the View Controller.

https://demo.jmix.io/ui-samples/sample/file-upload-field?tab=file-upload-field.xml

For example:

<fileUploadField id="uploadField" required="true"/>

Result:
image

For the Upload component, you must do the logic yourself.

Please follow the forum rules and describe the problem in more detail: https://forum.jmix.io/guidelines

Regards,
Nikita

I want this kind of design :smile:
image

If don’t wanna set it required, and just check it if null or not. But how using < upload >? :grinning: