diff --git a/entity/Role_entity/Role_entity.aod b/entity/Role_entity/Role_entity.aod
index 39f6b5e727efa30c26531ecfb5ba08ef3393a43f..667568f4c04e25f9201993424ccdbf18a198c92d 100644
--- a/entity/Role_entity/Role_entity.aod
+++ b/entity/Role_entity/Role_entity.aod
@@ -33,6 +33,7 @@
       <name>ROLENAME</name>
       <title>Name</title>
       <mandatory v="true" />
+      <stateProcess>%aditoprj%/entity/Role_entity/entityfields/rolename/stateProcess.js</stateProcess>
     </entityField>
     <entityField>
       <name>USERCOUNT</name>
diff --git a/entity/Role_entity/entityfields/rolename/stateProcess.js b/entity/Role_entity/entityfields/rolename/stateProcess.js
new file mode 100644
index 0000000000000000000000000000000000000000..c659870cbd17588875df2a7f1a33c242505b027c
--- /dev/null
+++ b/entity/Role_entity/entityfields/rolename/stateProcess.js
@@ -0,0 +1,9 @@
+import("system.result");
+import("system.vars");
+import("system.neon");
+
+if (vars.get("$sys.operatingstate") == neon.OPERATINGSTATE_EDIT) {
+    result.string(neon.COMPONENTSTATE_READONLY);
+} else {
+    result.string(neon.COMPONENTSTATE_AUTO);
+}
\ No newline at end of file
diff --git a/entity/Role_entity/recordcontainers/jdito/onUpdate.js b/entity/Role_entity/recordcontainers/jdito/onUpdate.js
index d6e58304bb8f7ea60a384c5ce74b45d03945c239..c549fbcdef2a79df8f069b6019f7803d484acae8 100644
--- a/entity/Role_entity/recordcontainers/jdito/onUpdate.js
+++ b/entity/Role_entity/recordcontainers/jdito/onUpdate.js
@@ -1,5 +1,11 @@
 import("system.tools");
 import("system.vars");
 
-var name = vars.get("$field.ROLENAME");  // field got prefix "CUSTOM_" already
-tools.updateRole(name, vars.get("$field.ROLETITLE"), vars.get("$field.ROLEDESCRIPTION"), true, null);
\ No newline at end of file
+var selectedRole = vars.get("$field.ROLENAME"); // field got prefix "CUSTOM_" already
+
+tools.updateRole(selectedRole,
+    vars.get("$field.ROLETITLE"),
+    vars.get("$field.ROLEDESCRIPTION"),
+    vars.get("$field.IS_ASSIGNABLE") == "0" ? false : true,
+    null
+    );
\ No newline at end of file