0

We are building a form in TYPO3 by setting up the form definition with yaml configuration ourform.form.yaml.

We know how to add a custom label to the predefined submit button like this renderingOptions.submitButtonLabel but cannot figure out how to add a custom class to that element as there is no configuration key for that?

Also I was not able to find a frontend template to override.

3
  • Can you explain what exactly you are trying to achieve and why a CSS selector like [id^="form-identifier"] [type="submit"] does not work? Commented Mar 14, 2022 at 9:53
  • our customer wants an easy way to track the clicks via analytics Commented Mar 14, 2022 at 10:16
  • Then by all means use JavaScript for that. No need to change the form output. Commented Mar 14, 2022 at 10:23

2 Answers 2

1

You need to override the Fluid partial Form/Navigation.html.

There you can set the classes for the different buttons in the form (navigate through different steps and/or submitting the form.

Sign up to request clarification or add additional context in comments.

Comments

0

I think you dont even need to overwrite Form/Navigation.html because the parent css class .btn-group should contain a .submit class already that you can target (only if its the last step).

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.