Allow custom CSS stylesheet & custom Javascript in NXT donation forms.

The ability to style the NXT donation form is currently limited by basic settings in the form editor. Allowing custom CSS and javascript to be inserted in the NXT backend would remedy this. It's currently impossible to do this due to cross-origin policy restrictions with iframes.

  • Guest
  • Oct 25 2022
  • Reviewed: Voting Open
  • Attach files
  • Admin
    Samantha McGuin commented
    22 Aug 17:37

    Thanks for the comments on this! I know the seemingly easy answer is to allow the form to scrape from the page's stylesheets; however, our security team is set on our current iframe implementation and a strong security stance with that iframe being essentially a black box. Unfortunately, any additional customization is going to come from additional styling options being added for you to configure.

    Here's what I've gleaned from your comments that could potentially be added:
    -Additional font selections
    -Button styling / border styling
    -Set Font sizes to match mobile breakpoints
    -Form alignment

    I've reached out to Helen separately on the discrepancy she's seeing with the Consent and Gift Aid components.

    If there are other specific things you'd like styling control over, please continue to add them, as well as any specific fonts you are looking for!

  • Helen Lowery commented
    21 Aug 09:58

    To add - currently the formatting that is allowed doesn't even apply to all the modules you can insert - my font of choice does not extend to the Communication Preferences options, for example, and the line spacing is different on different modules. (Gift Aid compared to Communication Preferences.) I have to either choose Blackbaud's font, which is not on brand for us, or have a form that looks poorly put together and unprofessional. Allowing further customisation would fix these basic issues.

  • Dan Shields commented
    06 Jun 13:46

    This would be a helpful feature for bringing the visual design inline with the rest of the website. If the form is embedded on a page, we could match the website fonts, or leverage some of the CSS variables we are using across the website. This could include responsive font sizes based on screen size, or matching the rounded corners to the button styles we're using everywhere else on the website.

  • Oliver Pugh commented
    March 20, 2024 17:45

    Seconding what Kipp is saying. I know this is an advanced user feature, but it's a very simple feature to implement.


    Hope to see this on the roadmap soon.

  • Kipp Wright commented
    January 10, 2024 21:25

    Yes - to add to this thread - ability to embed custom css at the top of the form or allow a reference to an external css file would be beneficial.

    Use Case - The NXT form has fundamental styling - however - need to extend that styling to have the form align with site and brand style of the company/organization - font align with site fonts, buttons look like site defined buttons, color scheme match custom colors of the site, ...


  • Guest commented
    May 03, 2023 18:21

    If we could use the functionality of the form but be able to use CSS and Javascript to customize the look and feel to our brand standards this would be a game changer for us being able to use the forms.

  • Naomi Harding commented
    February 09, 2023 21:19

    Adding an additional idea for online event registrations for a student in a BBU class

  • Admin
    Samantha McGuin commented
    October 25, 2022 16:37

    Thank you for submitting your idea!

    Can you give me some examples of the types of things you are looking to customize with CSS and javascript?

    Samantha McGuin
    Principal Product Manager