Form.Button.Submit

Version: - string  

Summary

Returns a submit button for the form.

<input type="submit" value="Submit" />

Settings

The value is based on the Display 'Submit' button in the paragraph settings of the module.

(Paragraph > Module settings > Form settings panel > Display 'Submit' button)

Examples

Outputting the template tag

@GetString("Form.Button.Submit")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@Form.Button.Submit-->

Check if string has a value

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