Search code examples
cssnintex-workflow

CSS Nintex disable spacebar no spaces in text input


In Nintex I am trying to limit bad data input by the user using CSS. The data needs to be in all caps, with no spaces. The all caps portion is easy via

.transformToAllCaps {text-transform: uppercase;}. 

However, I have no idea how to not allow spaces. Can anyone help me out with this? Is this even possible in CSS? or would I need to use another setting in Nintex?


Solution

  • That is not possible with CSS, but you could remove the spaces from the string using JS:

    str = str.replace(/\s/g, '');