How to Change the Forms Module Submit Button Value (i.e. to say Send instead of Submit)

Jun 3, 2014 12:24 pm

Our Forms module builds the Submit button for you. By default it has a value "Submit" set. If you would like to change the value from "Submit" to an arrow or "Send" for example you can do so by doing the following:

1) Go to the Green Interface > Layouts > Modules > filter by "Forms" > edit [Submit] (forms_submit) Module Layout

There you might see HTML code such as:

<div style="padding-top:20px;text-align:center">
    <if [[prev_text]] != ''>
        <input type="button" name="prev" alt="Prev" value="[[prev_text]]" onclick="javascript:window.location.href='[[prev_url]]'" />
    <if [[next_text]] != ''>
        <span><input type="submit" name="submit" alt="Submit" value="Send" /></span>

This code contains both the Previous, Next, & Submit Buttons. The input for the Submit Button will have the name="submit" and alt="Submit" by default:

<input type="submit" name="submit" alt="Submit" value="[[next_text]]" />

Changing the value="[[next_text]]" attribute will dictate what text is shown on the button when it is rendered. For Example:

<input type="submit" name="send" alt="Send" value="Send" />

The above code will now render a button out that says "Send" instead of "Submit"