Data bound submit event not firing on form (fires on test button)

2 posts, 0 answers
  1. CM
    CM avatar
    12 posts
    Member since:
    Nov 2012

    Posted 06 Jul 2013 Link to this post

    This one is driving me nuts. I have a form inside of my mobile application such as this:
    <form data-bind="submit: submitJbSearch">
            <ul data-role="listview">
                        <input type="text" placeholder="Job Number" data-bind="value: test" />
                        <select data-bind="options: statuses">
                        <input type="text" placeholder="Customer" />
                        <input type="text" placeholder="PO#" />
    I'm using the knockout data binding of submit here (also tried the events Kendo binding and the event and submit knockout binding) and the function that I'm bound to is not firing when hitting the enter key inside of Chrome or on my iPhone when hitting the 'Go' button on the keyboard.

    I also added a button to the bottom of the form for a sanity check to ensure my knockout VM function was firing. Here is the button code:
    <a href="#" data-bind="click: submitJbSearch" data-role="button">Submit</a>
    And my VM:

    I feel as if I'm going insane. I have a feeling that this is something dumb I'm missing. 
  2. Alexander Valchev
    Alexander Valchev avatar
    2873 posts

    Posted 09 Jul 2013 Link to this post

    Hi Christopher,

    I already replied in the other forum thread that you submit on the same subject. If you would like to submit on enter press you should add a input (not Kendo UI button) of type submit.

    Alexander Valchev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top