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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Restrict double bytes characters

Avatar

Level 2

Morning,

Is there a way to restrict double byte characters from being typed into a field? I am looking for an alternative to a script on the change event filtering key strikes. I've tried playing with the locale, fonts, picture clauses but didn't manage to get the desired results.

Thanks

Hélène

0 Replies

Avatar

Level 5

Hi,

Could you place something like this as the validation pattern.

text{AAAAAAA}

It seems to work for me but I am not sure which characters exactly you are trying to stop.

(to create a validation pattern : Just in case)

add a text field

select "value"

click "Validation Pattern" Button

Select "Validation" tab

Enter "text{AAAAAAA}" in the "Pattern" box.

Hope this helps

Malcolm

Avatar

Level 2

Thanks for your response.

We're trying to restrict double byte characters e.g. Japanese or Russian characters. The picture pattern suggested doesn't differentiate between a single and double byte character.

Hélène

Avatar

Level 5

Hi,

Using that format I was unable to type á into a text field, I think that is a double byte character ( maybe I am wrong on that).

I will try and test with Russian or Japanese and see if I can find a solution.

Malcolm

Avatar

Level 2

I tested the solution with a text field (kept default settings including font) and copied a double byte character from Windows's Character Map tool (using the same font i.e. Myriad Pro).

Thanks for your help.

Hélène