Search.../

value

Sets or gets the value in the dashboard input field.

Description

To reset the text input and restore any placeholder text, set the value property to null or undefined.

Note:

  • Changing a text input's value in code does not trigger an onChange event.

Type:

stringRead & Write

Was this helpful?

Get the dashboard input field's value

Copy Code
1let myValue = $w('#myInput').value; // "10 Main Street"
Set the dashboard input field's value

Copy Code
1$w('#myInput').value = "10 Main Street";