Skip to content

A free open source IT asset/license management system

Hide the option if the field is encrypted

snipeae95ee49f159
diff --git a/resources/views/custom_fields/fields/edit.blade.php b/resources/views/custom_fields/fields/edit.blade.php
index 0934a2daa8..b9b9715a2e 100644
--- a/resources/views/custom_fields/fields/edit.blade.php
+++ b/resources/views/custom_fields/fields/edit.blade.php
@@ -217,11 +217,13 @@
$('#field_encrypted').on('ifChecked', function(event){
$("#encrypt_warning").show();
$("#show_in_email").hide();
+ $("#display_in_user_view").hide();
});
$('#field_encrypted').on('ifUnchecked', function(event){
$("#encrypt_warning").hide();
$("#show_in_email").show();
+ $("#display_in_user_view").show();
});
</script>