Skip to main content Skip to footer
@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage @using USNSiteBuilder.Core.Models @using USNSiteBuilder.Core.Extensions @using Microsoft.Extensions.Options @inject IOptions _appSettings @{ // Domain + assets var siteDomain = Context.Request.Scheme + "://" + Context.Request.Host; var assetUrl = siteDomain + "/App_plugins/UmbracoForms/Assets/Email-Example"; var googleFontSource = _appSettings.Value.GoogleFontSource.HasValue() ? _appSettings.Value.GoogleFontSource : "fonts.googleapis.com"; // Helper to read first non-empty field value by alias list string GetField(params string[] aliases) { foreach (var a in aliases) { var v = Model.GetValue(a); if (v != null && v.ToString().HasValue()) return v.ToString(); } return ""; } // Try common aliases (edit if your form uses others) var firstName = GetField("firstName","firstname","first_name","Vorname"); var lastName = GetField("lastName","lastname","last_name","Nachname"); // Questionnaire URL (set to your actual page / deep link) // If you pass the URL as a hidden field, add its alias to GetField(...) below. var questionnaireUrl = GetField("questionnaireUrl"); if (!questionnaireUrl.HasValue()) { questionnaireUrl = siteDomain + "/patient-questionnaire"; // <- change if needed } } Appointment Request Confirmation

Appointment Request Confirmation

Hi Steve Pye,

Thanks for your request — our reception has received your appointment enquiry and will reach out shortly with the next steps and available times.

To make your consultation more productive, please take a few minutes to complete the Patient Questionnaire.

It usually takes 5–10 minutes. If you’ve already completed it, you can ignore this step.


Form Results

@foreach (var field in Model.Fields) { // Skip the hidden questionnaireUrl if you don't want it to appear in results if (string.Equals(field.Alias, "questionnaireUrl", System.StringComparison.OrdinalIgnoreCase)) { continue; }

@field.Name

switch (field.FieldType) { case "FieldType.FileUpload.cshtml":

@field.GetValue()

break; case "FieldType.DatePicker.cshtml": DateTime dt; var fv = field.GetValue(); var dateValid = DateTime.TryParse(fv != null ? fv.ToString() : string.Empty, out dt); var dateStr = dateValid ? dt.ToString("f") : "";

@dateStr

break; case "FieldType.CheckBoxList.cshtml":

@foreach (var val in field.GetValues()) { @val
}

break; default:

@field.GetValue()

break; } }

If you have any urgent questions, reply to this email and our team will assist you.