/// <summary> /// Creates the control(s) necessary for prompting user for a new value /// </summary> /// <param name="configurationValues">The configuration values.</param> /// <param name="id"></param> /// <returns> /// The control /// </returns> public override Control EditControl(Dictionary <string, ConfigurationValue> configurationValues, string id) { var editControl = new RockDropDownList { ID = id }; editControl.Items.Add(new ListItem()); var interactionChannels = new InteractionChannelService(new RockContext()).Queryable().OrderBy(d => d.Name); if (interactionChannels.Any()) { foreach (var interactionChannel in interactionChannels) { editControl.Items.Add(new ListItem(interactionChannel.Name, interactionChannel.Guid.ToString().ToUpper())); } return(editControl); } return(null); }