Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

How to 'split' combs with a space in single field? (e.g. 2 digit area code in comb -space- phone number also in comb)

Avatar

Avatar
Boost 1
Level 1
scottm58176284
Level 1

Like

1 like

Total Posts

1 post

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
scottm58176284
Level 1

Like

1 like

Total Posts

1 post

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
scottm58176284
Level 1

14-05-2015

Hi all,

Hoping someone can tell me how to get a field to work like the one in the image below? I need to 'split' data entry in the field.

I'm well aware that I can use a pattern to display a dash or similar when the user enters text, but I don't want that - I need to insert a gap between two sets of combs (as below). Specifically, it's a reference number on a card that people will enter, and I don't want two separate fields!

Thanks in advance for any help!!

split.PNG

Accepted Solutions (0)

Answers (3)

Answers (3)

Avatar

Avatar
Validate 1
Level 4
mouslander
Level 4

Likes

23 likes

Total Posts

298 posts

Correct Reply

27 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 4
mouslander
Level 4

Likes

23 likes

Total Posts

298 posts

Correct Reply

27 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
mouslander
Level 4

26-05-2015

You can also use one comb field and set a pattern. In the example above 4-5-1 would look like:

text{AAAA-AAAAA-A} - this is for all alpha chars

text{9999-99999-9} - this is for numeric chars

the output would look like this

In this example the user does not have to type in the dashes but it will work if the dopattern.PNG

Avatar

Avatar
Validate 1
Level 4
jasotastic81
Level 4

Likes

35 likes

Total Posts

329 posts

Correct Reply

43 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Validate 1
Level 4
jasotastic81
Level 4

Likes

35 likes

Total Posts

329 posts

Correct Reply

43 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
jasotastic81
Level 4

20-05-2015

Looking at the picture you provided, it appears to actually be three text/numeric fields. The second and third fields look like they have a hyphen "-" for their caption. There are no lines above or below the hyphens in the picture, and the only way I can duplicate that is to actually use multiple text fields.

Are you wanting to have one field for your benefit? Or just to make the user experience more seamless? If it's just for the user's experience, you could use the change event to move the focus of the cursor once the combs are complete or empty. Then you handle the full string programmatically if you need it.

Avatar

Avatar
Boost 1
Level 2
alcdtrainer1
Level 2

Likes

2 likes

Total Posts

31 posts

Correct Reply

6 solutions
Top badges earned
Boost 1
Applaud 5
Applaud 25
Affirm 5
Affirm 3
View profile

Avatar
Boost 1
Level 2
alcdtrainer1
Level 2

Likes

2 likes

Total Posts

31 posts

Correct Reply

6 solutions
Top badges earned
Boost 1
Applaud 5
Applaud 25
Affirm 5
Affirm 3
View profile
alcdtrainer1
Level 2

26-05-2015

I couldn't think of better soulution than this. Thanks jasotastic81. I learnt something new today