diff --git a/app/models/field_item.rb b/app/models/field_item.rb
index <HASH>..<HASH> 100644
--- a/app/models/field_item.rb
+++ b/app/models/field_item.rb
@@ -3,6 +3,15 @@ class FieldItem < ActiveRecord::Base
   belongs_to :field
   belongs_to :content_item
 
+  before_save :serialize_data
+
+  def serialize_data
+    if field.field_type == "tree_field_type"
+      values = data["values"]
+      self.data = { values: values.select { |kv| values[kv] == "1" }.keys }
+    end
+  end
+
   validates :field_id, presence: true
   validates :content_item_id, presence: true, on: :update
   validate :field_item_content_is_valid, if: :field_is_present
Add Sanitizer for Tree_field_type values to only track ids of the chosen