diff --git a/entity/Document_entity/Document_entity.aod b/entity/Document_entity/Document_entity.aod
index f1dda1cc413a7dc2f7f2678ef59c6188096c0d5f..713af4aaedfa2357e280f4fcc09aecf81153f058 100644
--- a/entity/Document_entity/Document_entity.aod
+++ b/entity/Document_entity/Document_entity.aod
@@ -5,6 +5,7 @@
   <documentation>%aditoprj%/entity/Document_entity/documentation.adoc</documentation>
   <title>Document</title>
   <grantCreateProcess>%aditoprj%/entity/Document_entity/grantCreateProcess.js</grantCreateProcess>
+  <onValidation>%aditoprj%/entity/Document_entity/onValidation.js</onValidation>
   <iconId>VAADIN:FILE</iconId>
   <titlePlural>Documents</titlePlural>
   <recordContainer>jdito</recordContainer>
@@ -57,7 +58,7 @@
       <name>BINDATA_UPLOAD</name>
       <title>File</title>
       <contentType>FILE</contentType>
-      <mandatory v="false" />
+      <mandatory v="true" />
       <mandatoryProcess>%aditoprj%/entity/Document_entity/entityfields/bindata_upload/mandatoryProcess.js</mandatoryProcess>
       <onValueChange>%aditoprj%/entity/Document_entity/entityfields/bindata_upload/onValueChange.js</onValueChange>
       <onValueChangeTypes>
diff --git a/entity/Document_entity/entityfields/bindata_upload/mandatoryProcess.js b/entity/Document_entity/entityfields/bindata_upload/mandatoryProcess.js
index 9b10455db373f6515f4045f5c7095c39eecdc778..d250f4bf65f47b01e5e7af7afd0dda64fac4db98 100644
--- a/entity/Document_entity/entityfields/bindata_upload/mandatoryProcess.js
+++ b/entity/Document_entity/entityfields/bindata_upload/mandatoryProcess.js
@@ -3,6 +3,6 @@ import("system.vars");
 import("system.result");
 
 if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW)
-    result.string("true");
+    result.string(true);
 else
-    result.string("false");
+    result.string(false);
\ No newline at end of file
diff --git a/entity/Document_entity/onValidation.js b/entity/Document_entity/onValidation.js
new file mode 100644
index 0000000000000000000000000000000000000000..53b827644e99ed8153516c39ff120f4a55c392c3
--- /dev/null
+++ b/entity/Document_entity/onValidation.js
@@ -0,0 +1,13 @@
+import("system.neon");
+import("system.result");
+import("system.vars");
+
+if(vars.get("$sys.recordstate") == neon.OPERATINGSTATE_NEW)
+{
+    var bindata = vars.get("$field.BINDATA_UPLOAD");
+
+    if(bindata == null || bindata == "")
+    {
+        result.string("Dont forget to upload a file");
+    }
+}
\ No newline at end of file