Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

limit character on custom field without any plugins

Mahdi Challouf
Contributor
November 29, 2018

I have a text custom field and would like to limit it to 15 characters. Is there a way to do this without any plugins, so whenever this field is present on any screen it only allows 15 characters.

2 answers

1 accepted

1 vote
Answer accepted
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 29, 2018

You can try injecting javascript, but it's rare you will reliably catch all the places you might be able to edit.

I would strongly recommend getting an App for this sort of thing.  Ideally one that provides a field that can be limited internally, not with js.

Mahdi Challouf
Contributor
November 29, 2018

I'm bind to do it in a native way, is it possible to inject a JS ?? then how can i do it 

Thank you

0 votes
Bill Tanner
Contributor
November 29, 2018

We have done it with Power Custom Fields Premium, creating a Regular Expression field.  You can also do a post function using a validator based on Regular Expression, but that requires JSU plugin.  Sorry, not the answer you wanted.

Mahdi Challouf
Contributor
November 29, 2018

I want to do it in a native way, without using any plugins

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 29, 2018

There is no "native" way.  You need javascript hacks (not recommended and definitely not native) or Apps.

Like Mahdi Challouf likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events