How to trim all input fields as default

My application is traditional web app with dublin template.

May i know how to trim all input fields as default?

As my know, i can make use of 'trim()' function in the 'assign' for removing unwanted space. However, it will be time-consuming and much efforts if i have many input fields. Do i use 'jquery' to trim all unwanted space? Please advise.

Thank in advance.

Hi Jessica,

AFAIK there is no default option available to trim all the input automatically , however as you mentioned you can use some jQuery to find all the inputs and trim there values as you need.



Hi Jessica, 

You can apply for a smart work here. Instead of applying trim to all form fields you can add trim when you are calling create or update functions. It will be a time saver move.


Thank for all advices.