Assign a class to the submit button

How to assign custom CSS classes to a ChronoForms submit button.

Overview

The default form styling automatically adds its own classes, which combine with custom classes entered in the HTML Attributes field.
To apply only your custom classes, use an HTML view in the form and manually insert the complete button code with your desired classes.

Answered
ChronoForms v8
Co Con20 08 Dec, 2024

Good morning, everyone,

I am trying to figure out how to assign one or more classes present in my template to the Submit button.

I work on Joomla 5 with Yootheme

The button generates me these classes by default:

<button class=“nui button colored slate” name=“submit” value="” id=“submit” type=“submit” >

If I enter in the HTML Attributes settings with this code:

class=el-content uk-width-1-1 uk-button uk-button-secondary uk-button-large

I get is this:<button class=“nui button colored slate el-content uk-width-1-1 uk-button uk-button-secondary uk-button-large&quot;” name=“submit” value="” id=“submit” type=“submit” >

How can I apply only my classes?

Thanks

Marco

Max_admin Max_admin 08 Dec, 2024
Answer

Hi Marco

You can not apply your classes only, if you want that then just use an HTML view and paste the button code

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.