Check if the 'upload file' field is empty or not in EDC/CDMS
With the below calculation template you can check whether the upload file field contains a file or is empty.
Replace the variable name of the upload file field with your own variable name. You can also edit the message that appears accordingly.
'##allowempty##';
'##setemptytozero##';
if('{Upload_file}' !== '0') {
"Uploaded";
} else {
"Not uploaded";
}
Depending on whether the file has been uploaded or not, relevant output will shown:
![](https://static.helpjuice.com/helpjuice_production/uploads/upload/image/11257/direct/1669126786690-Screenshot%2B2022-11-22%2Bat%2B15.19.08.png)
![](https://static.helpjuice.com/helpjuice_production/uploads/upload/image/11257/direct/1669126786705-Screenshot%2B2022-11-22%2Bat%2B15.18.26.png)