Limits of characters in field

The 1C:Enterprise developers forum

#1
People who like this:0Yes/0No
Active user
Rating: 8
Joined: Oct 15, 2024
Company:

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"

Edited: Gigha - Oct 18, 2024 10:56 AM
 
#2
People who like this:0Yes/0No
Administrator
Rating: 32
Joined: Oct 3, 2019
Company:

Dear Gigha,

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

Download 1.png (37.91 KB)
Download 2.png (18.72 KB)
 
#3
People who like this:0Yes/0No
Active user
Rating: 8
Joined: Oct 15, 2024
Company:

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

 
#4
People who like this:0Yes/0No
Administrator
Rating: 32
Joined: Oct 3, 2019
Company:

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).

 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)
Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.