/// <summary> /// Returns the field's current value(s) /// </summary> /// <param name="parentControl">The parent control.</param> /// <param name="value">Information about the value</param> /// <param name="configurationValues">The configuration values.</param> /// <param name="condensed">Flag indicating if the value should be condensed (i.e. for use in a grid column)</param> /// <returns></returns> public override string FormatValue(Control parentControl, string value, Dictionary <string, ConfigurationValue> configurationValues, bool condensed) { string formattedValue = string.Empty; if (!string.IsNullOrWhiteSpace(value)) { var names = new List <string>(); using (var rockContext = new RockContext()) { var groupMemberService = new GroupMemberService(rockContext); foreach (Guid guid in value.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries).AsGuidList()) { var groupMember = groupMemberService.GetNoTracking(guid); if (groupMember != null) { names.Add(groupMember.Person.FullName); } } } formattedValue = names.AsDelimited(", "); } return(base.FormatValue(parentControl, formattedValue, null, condensed)); }