Please replace line42-50 with the following code on Snippet
form.events.on("keydown", function(event, name, id) {
console.log(event)
if (event.key=="Enter"){
dhx.awaitRedraw().then(function(){
alert(form.getItem("name").getValue());
})
}
});
Try to fill the Name in the input control, then click the keyboard Enter button. We can only get blank, ie. getValue() method gets nothing, while _value property gets something.
I get the same result when .getValue() inside or outside the awaitRedraw().