Custom styling/themes for K2 Five SmartForms

  • 27 February 2022
  • 2 replies
  • 585 views

Hello, 

 

I am looking for a way to have the k2 smart forms have a modern look and feel, as the default themes don't have these, even when I tried to use the style profiler is K2 5.5, is there a way to import a modern CSS design or as anyone does this before.  

 

i wan nice flat HTML designs for the forms


2 replies

Userlevel 2
Badge +6

Hi Bombata,


 


You can easily add your own stylesheet by adding <link type="text/css" href="<<link to stylesheet>>" rel="stylesheet" /> to a literal datalabel, you can do so in the "When the server loads a View" event to avoid style jumps. If you have no way to host a CSS file somewhere publicly accessible, you can always inject the styles using the <style>...</style> tag.


 


Note that the selectors will be smartforms-specific (so you can't just load an existing style like bootstrap or material design and expect it to work). If you want to use existing stylesheets, you can use JavaScript inject to add the necessary classnames/identifiers to controls to facilitate the necessary selectors.


 


Cheers,


Ernie

Hi,

This might be what you are looking for:
https://help.nintex.com/en-US/k2five/devref/current/default.htm#Themes/Custom-Themes.htm

Reply