Desktop version

Main > Forum > 1C:Enterprise Platform > 1C:Enterprise – Business applications platform > Limits of characters in field

Forum

Search UsersRules
Limits of characters in field
#1
Active user
Points:: 0
Joined:: Oct 15, 2024

In Catalog Counterparties, in ItemForm, there is a field called TIN.
I want field TIN length exactly 16.
User cannot enter more than 16 characters and if user enter less than 16 character, warning appears "Field must be filled with 16 characters"

Profile
#2
Administrator
Points:: 0
Joined:: Oct 3, 2019

Dear Gigha,

look at the screenshots. This is also easy to do:

Profile
#3
Active user
Points:: 0
Joined:: Oct 15, 2024

Thank you, it works
I use it in OnChange in field TIN

Profile
#4
Administrator
Points:: 0
Joined:: Oct 3, 2019

When using the "OnChange" event, a message that the user has entered a too short number will be shown each time a character is entered. This can be inconvenient...

In general, it is considered good form to do all checks when recording (if this is a Catalog, for example) or when posting (if this is a Document).

Profile
Subscribe
Users browsing this topic (guests: 5, registered: 0, hidden: 0)



© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.