def required_fields
      required_fields = []
      ignore_fields = [:id, :date_entered, :date_modified]
      self.fields.each_value do |field|
        next if ignore_fields.include? field["name"].to_sym
        required_fields << field["name"].to_sym if field["required"] == 1
      end 
      required_fields
    end
def required_fields
      required_fields = []
      ignore_fields = [:id, :date_entered, :date_modified]
      self.fields.each_value do |field|
        next if ignore_fields.include? field["name"].to_sym
        required_fields << field["name"].to_sym if field["required"] == 1
      end 
      required_fields
    end
Returns the required fields