Jump to content

Recommended Posts

Posted

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".

Posted
1 hour ago, Int3g3r said:

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

Hello,

It is enough to set the maxLength property.

Which edition and build of UniGUI are you using?

Posted

Is it possible to readout the UniGui Build version in the Delphi IDE ?
When yes how ?

I installed follow Setup:
Complete_Professional_1.90.0.1535

Posted
1 hour ago, Sherzod said:

Are you using trial edition?

No, I have a subscription. I'm using the full version.

PS: I have set the InputType Property to "number".

Regards,
Int3g3r

Posted
13 hours ago, Sherzod said:

an you try to use "tel" instead?

I set the maxLength Property to 3 and the InputType to "tel".

This works. Thank you.

  • Like 1

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...