The Community forums are being phased out in favor of a new Slack group.
Add your email address below to get an invitation to join the community slack group

Slack Signup
Newsletter Optin
Help Desk

Set some initial digits to a text or number field based on other field's value

Labels

This Discussion is public

Notifications

I wonder of this can be achieved: I have two number fields (may be text, too).

The first field is a 4 digit number. The second field is a 13 digit number, but the first 4 digits have to be exacly the digits of the first field.

I want the user to fill the first field, and the second field must pull the value from the first field and let the user to fill the 9 remaining digits.

Field 1 (4 digits, number or text): 1729

Field 2 (13 digits, number or text): 1729 _ _ _ _ _ _ _ _ _ (the first four digits must appear mandatory, and the user enters the 9 digits left).

It doesn't matter if fields are treated as number or text.

What would be the approach? Thanks in advance.

As a start, I used Calculate the default value for this field - This calculation is copying text, but that does not lock the first four digits. The user must not delete them in the second field.

Discussion closed.