Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Yaco Zaragoza 80 posts 334 karma points
    Jan 08, 2024 @ 18:37
    Yaco Zaragoza
    0

    Umbraco Forms: How do I change the class on the Submit BTN?

    I am using Umbraco forms and I wanted to know if I could change the class on the submit btn instead of re-defining the style for btn-primary on my page.

    I already looked at "https://docs.umbraco.com/umbraco-forms/developer/themes/" but I did not find what I was looking for

    any help is greatly appreciated.

  • Danine Noble 76 posts 331 karma points
    Jan 09, 2024 @ 17:44
    Danine Noble
    100

    I don't believe there is currently any way to individually manage classes on elements of an Umbraco Form (someone could correct me if that's changed). You can, however, add a class to the form itself via the settings tab when designing a form.

    Depending on whether all your forms should use your alternative button styling or only specific ones, you could utilize the class on a form to change the submit button styling or define it globally for form elements in the site styles.

    Form themes are also an option, but could potentially be a bit of overkill for something so small. But if you didn't have access to tweaking/adding classes in site styles then it could be useful in that case.

  • Yaco Zaragoza 80 posts 334 karma points
    Jan 09, 2024 @ 18:47
    Yaco Zaragoza
    1

    Yeah, That is what I am doing but wanted to see if there was a better way.

    Thank you.

Please Sign in or register to post replies

Write your reply to:

Draft