How do I limit character count on an authenticator? | XM Community
Solved

How do I limit character count on an authenticator?

  • 27 November 2017
  • 3 replies
  • 9 views

Userlevel 5
Badge +10
Participants received a ten-digit number to enter in an authenticator. Unbeknownst to them, a cut and paste added a space and invalidated the login. Is there a way to limit the number of characters in the authentication box?
icon

Best answer by AnthonyR 27 November 2017, 23:45

View original

3 replies

Userlevel 7
Badge +7
I don't think that there is any way to limit this unfortunately. Perhaps, it is worth adding a warning to users that this may be a problem.

Definitely worth a feature request!
Userlevel 5
Badge +20

Hi JulieT, I came across your post courtesy of some recent work I've been doing with Authenticators whereby I was trying to restrict the character length of a given Authenticator field. Appreciate that this is an old post, but I wanted to flag that your requirements are actually possible to achieve by -:

  1. Navigate to the Look and Feel screen

  2. Under the "General" tab, edit the Header and switch to the Source view

  3. Enter the following script...


In the example above, the "0" in
.eq(0)
 relates to the first Authenticator field, so if you have 2 or more, you can explicitly reference them by updating to
.eq(1)
or
.eq(2)
etc. You can also substitute "10" for whatever length value is appropriate
.attr("maxlength",10)
section of the code.
Cheers,
Cameron

Userlevel 7
Badge +35

JulieT
Also to add to CamM's point you can have number validation as well. If you use question-based authenticator which means creating question including in embedded data and prefilling authenticator.
It is mentioned on this thread.
or in native authenticator you can add an alert.

Hope it helps!

Leave a Reply