Re: [web2py] why cant I submit a customized form with this button

2017-05-06 Thread Maurice Waka
Second option is perfect. Thanks for the information. On May 5, 2017 18:25, "Jim S" wrote: Can you try the following: 1. or 2. {{=form.custom.submit}} and then control your text and classes through your controller. -Jim On Friday, May 5, 2017 at 10:17:06 AM UTC-5, Maurice Waka wrote

Re: [web2py] why cant I submit a customized form with this button

2017-05-05 Thread Jim S
Can you try the following: 1. or 2. {{=form.custom.submit}} and then control your text and classes through your controller. -Jim On Friday, May 5, 2017 at 10:17:06 AM UTC-5, Maurice Waka wrote: > > Without js, form still only submitted by hitting enter. I'll check this > other link.

Re: [web2py] why cant I submit a customized form with this button

2017-05-05 Thread Maurice Waka
Without js, form still only submitted by hitting enter. I'll check this other link. Regards On May 5, 2017 18:07, "Jim S" wrote: > Can you strip out all of your javascript and confirm that the standard > form submission is working with Kiran's solution? > > Then, put your javascript back in and

Re: [web2py] why cant I submit a customized form with this button

2017-05-05 Thread Jim S
Can you strip out all of your javascript and confirm that the standard form submission is working with Kiran's solution? Then, put your javascript back in and watch the javascript console during execution to see where you're getting hung up? Then for your second issue, have you looked at javasc

Re: [web2py] why cant I submit a customized form with this button

2017-05-05 Thread Maurice Waka
Still no change. How about the preventing page refreshing On May 5, 2017 10:06, "Kiran Subbaraman" wrote: > The `{{=form.custom.end}}` has to be after the submit button. > http://web2py.com/books/default/chapter/29/07/forms- > and-validators#Custom-forms > > _

Re: [web2py] why cant I submit a customized form with this button

2017-05-05 Thread Kiran Subbaraman
The `{{=form.custom.end}}` has to be after the submit button. http://web2py.com/books/default/chapter/29/07/forms-and-validators#Custom-forms Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Fri, 05-05-2017 11:15 AM, Maurice Waka wrote: I hav

[web2py] why cant I submit a customized form with this button

2017-05-04 Thread Maurice Waka
I have a web2py app, with two problems: 1. I can submit the customized form with pressing 'Enter' but when clicking the button, I get an error. 2. when pressing 'Enter', the form is submitted but the page is refreshed immediately. How can i stop that? Here is the code; This does not work