Search.../

min

Sets or gets the minimum value for a text input element whose type is set to Number.

Description

Setting the min property restricts users from changing the text input's value to a number lower than min if the text input is set to be a Number type. However, it does not limit your ability to change the value to a number lower than min programmatically.

Set min to undefined to remove the current minimum value limitation.

Getting the min property returns the minimum value a user can enter into the text input.

You can also set an element's min property in the Editor using the Settings pane: Input Settings pane

Type:

numberRead & Write

Related Content:

Was this helpful?

Gets a text input's min value

Copy Code
1let minVal = $w("#myTextInput").min; // 100
Sets a text input's min value

Copy Code
1$w("#myTextInput").min = 100;