How do I limit character count on an authenticator? | XM Community
Skip to main content
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?
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!

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


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