Form.FormSubmitButtonText

Version: - string  

Summary

Returns the button text for the submit button.

Settings

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

(Page > Paragraph > Module > Form > Text on button)

Examples

Outputting the template tag

@GetString("Form.FormSubmitButtonText")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetString("Form.FormSubmitButtonText"); }

Outputting the template tag

<!--@Form.FormSubmitButtonText-->

Check if string has a value

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