func (r RecordCreate) GetFieldByType(field interface{}) interface{} {
	var result interface{}
	if field == nil {
		return result
	}

	if records := r.getFieldsByType(field, true); len(records) == 0 {
		return result
	} else {
		return records[0]
	}
}
// GetFieldByType returns first found field of the same type as field param
// The search goes first through fields[] then custom[]
// Note: Method returns a pointer so any value modifications are reflected directly in the record
GetFieldByType returns first found field of the same type as field param
The search goes first through fields[] then custom[]
Note: Method returns a pointer so any value modifications are reflected directly in the record
// GetFieldByType returns first found field of the same type as field param // The search goes first through fields [] then custom [] // Note : Method returns a pointer so any value modifications are reflected directly in the record
func (r RecordCreate) GetFieldByType(field interface{}) interface{} {
	var result interface{}
	if field == nil {
		return result
	}
	if records := r.getFieldsByType(field, true); len(records) == 0 {
		return result
	} else {
		return records[0]
	}
}
func ( r RecordCreate ) GetFieldByType ( field interface { } ) interface { } { var result interface { } if field == nil { return result } if records := r . getFieldsByType ( field , true ) ; len ( records ) == 0 { return result } else { return records [ 0 ] } }
GetFieldByType returns first found field of the same type as field param
The search goes first through fields[] then custom[]
Note: Method returns a pointer so any value modifications are reflected directly in the record
GetFieldByType returns first found field of the same type as field param The search goes first through fields [] then custom [] Note : Method returns a pointer so any value modifications are reflected directly in the record