You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

VBCS: Input onEnter event and event binding

edited Mar 25, 2019 3:03PM in Visual Builder 5 comments

Summary

Missing onEnter and getting no data in action chain unless custom eventBinding

Content

Dear all,

Hopefully i'm not missing something but I cannot find the onEnter event on an input field (I want to trigger an action chain when somebody presses enter in an input field). jQuery supports this out of the box so i would have expected it at the events tab -> custom event. Am I correct to use the keyUp and check keyCode == 13?

So this brings me to another problem, to solve this I tried to use the keyUp (and keyDown and keyPress) and create an action chain. The data in the action chain is "0". This is because the standard solution for binding is: javascript event.detail -> action chain input data. So I had to change the input parameter mapping from {{ $event.detail }} to {{ $event }} to even be able to check on the keyCode and trigger my desired action.

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!