Submit.ReceiptTemplateText

Version: - string  

Summary

Returns the text that is rendered when the form is submitted and you are redirected to a confirmation template.

Settings

The value is based on the Text field in the paragraph module settings.

(Page > Paragraph > Module > When submitting form > Text)

Remarks

The field is avaiable when Use confirmation template is selected.

Examples

Outputting the template tag

@GetString("Submit.ReceiptTemplateText")

Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetString("Submit.ReceiptTemplateText"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetString("Submit.ReceiptTemplateText"); }

Outputting the template tag

<!--@Submit.ReceiptTemplateText-->

Check if string has a value

<!--@If Defined(@Submit.ReceiptTemplateText)--> Let's output this tag here: <strong><!--@Submit.ReceiptTemplateText--></strong> <!--@EndIf(@Submit.ReceiptTemplateText)-->