How to change the length of the input fields

mmujica
Kilo Contributor

I have a form with a mix of fields, some are long strings on multiple rows. But some are short integers and strings (that come from references) that won't be more than 10 characters. Is there a way I can customize the lengths of the fields? All the fields have the same width, they fill the browser. It's not a great user experience when it expects a 3 digit int, but the field takes up the whole screen.

4 REPLIES 4

Rajesh Mushke
Mega Sage
Mega Sage

hi



just check your dictionary entries, or


you can try this


To increase the length of a string field (e.g., from 40 characters to 100 characters):


  1. Right-click the field label in the form and select Configure Dictionary (Personalize Dictionary in versions prior to Fuji).
  2. Change the max_length field to the desired length.
  3. Increase it to the desired length.

and it may helps you.....


Introduction to Fields - ServiceNow Wiki




Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke

Appreciate the help. I'm actually trying to shrink the length of the field. It doesn't seem like I can change the length on integers and reference fields.



And when I try to lower the max_length on Strings, I see this error: "Element is using storage alias. Cannot shrink this element's length because it shares a storage alias"


That's by design. There are ways to resize field width by manipulating CSS using client scripts, but it's strongly discouraged and may impact upgrades.



Hope this helps.



Please feel free to connect, follow, mark helpful / answer, like, endorse.


John Chun, PhD PMP see John's LinkedIn profile

visit snowaid


ServiceNow Advocate

Winner of November 2016 Members' Choice Award


Use an onChange client script to limit the number of characters. Let me know if you need help in scripting.