Customizing the Submit Button¶
When a User is finished entering data into a form, they must submit the form. By default a button that says Submit is displayed for this purpose.
Sometimes Submit isn’t the clearest word for the action the User is taking when submitting the form. For example, you might want to use Register Now:
Create a form with a text field called Email Address. Give it a name and publish it.
Go to the form and see its Submit button:
Now change the button label. Go back to the form builder view and click the icon in the upper right.
In the Personalization tab, enter Register Now in the Submit Button Label field.
Save the form, then go back to the form view and see that the button has your new label:
Localizing the Button Label¶
Forms are translatable. If you have a translated form and you’re customizing the form label for the default language, you should translate the label, too.
In the default language, customize the button label from the menu.
Switch to the translated form and repeat the procedure for the translation. You’ll see the flag for the locale you’re translating into next to the Submit Button Label field.
When finished, your form has a consistent lexicon across languages.
Not finding what you're looking for?
Pardon our dust as we revamp and transition our product documentation to this site. If something seems missing, please check Liferay Help Center documentation for Liferay DXP 7.2 and previous versions.Try Liferay's Help Center