Hello
I want to text entered into a TextInput changed to lowercase as the user enters new text (or at least after they have left the field).
An Action function triggered through TextInput::setOnChangeAction(...) does hear the change and the event passed to the Action function has the value I want to change.
But it is not obvious how to change the value on the original TextInput object.
function setup() {
var action = CardService.newAction().setFunction("on_change");
var text CardService.newTextInput().setOnChangeAction(action);
}
function on_change(event) {
// do what to change the value of the text object?
}
Thank you!