Jump to content

TUnimEdit - maxLength doesn't work


Int3g3r

Recommended Posts

Hello,

I'm struggling to set the maxLength on a TUnimEdit.
I would like to set the maxLength to 3 characters.

1) I set the maxLength Property to 3.
2) I used the ClientEvents -> UniEvents with follow code:

function beforeInit(sender, config)
{
  config.cls='edtScan';
  config.maxLength=3;
}

In both cases I'm able to write more characters than 3 into the Input field.

Edit: InputType Property is set to "number"
Edit: Complete_Professional_1.90.0.1535

Regards,
Int3g3r

Edit workaround : Set the maxLength Property to 3 and the InputType to "tel".

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...