function GetSelectedTextValue(select_template) { var selectedText = select_template.options[select_template.selectedIndex].innerHTML; var selectedValue = select_template.value; if(selectedValue == 'custom_field'){ var html = `