justinmind-logo
 
Upvote 1

letters change to uppercase

Known Brayan 10 months ago

How can I make the letters change to uppercase as they are being typed into the input, and how can I restrict only numbers from being entered in number fields?

Replies (5)
photo
1

Hello, I am attaching an example where you can see in the upper input an event that converts "on key up" all to upper case.

In the input below, you will see a "set value" event with a calculated expression, where the "subtring" is used to subtract the last character from the input value if a condition is not met, in the condition, we use a regular expression to condition the value of the input, in any case, the event would be executed in this way; if the value of the input is not a number, the character will be removed from the value of the input.

Let me know how it went.

Regards.

photo
1

Thank you, that's what I was looking for. To limit the length of the text or the size of the numbers, what would be the procedure?

photo
1

Hello, you're welcome! In order to limit the characters you can also use the "substring", I am attaching a screenshot of what the formula would look like, keep in mind that the second number field refers to the length you want to give to the input text.

Regards.

2be4c1516f1113372584a50ca7f76394

photo
1

Thank you for the previous answers. Is it possible to use a control that simulates loading an image stored on the device to set it as a profile picture?

photo
1

Hello, you could use dynamic panels to simulate this action, clicking on an element inside a panel with "set active panel", it will activate a second panel with sample images and clicking on an image will hide the panel and the image will load In an image container, if when you place the image you want it to be reflected on a different page, you can use variables.

https://www.justinmind.com/support/dynamic-panels/

https://www.justinmind.com/support/variables/

Regards.

Leave a Comment
 
Attach a file