17486 Posts in 4473 Topics by 1978 members
Page: 1 2
|Go to End||Next >|
29 June 2008 at 10:53pm
if a user press enter in a field to save the form instead of using the save button silverstripe totally breaks. error as follows:
FATAL ERROR: No action button has been clicked in this form executon, and no default has been allowed
At line 213 in /Applications/MAMP/htdocs/patagonicas/sapphire/core/control/Controller.php
user_error(No action button has been clicked in this form executon, and no default has been allowed,256)
line 213 of Controller.php
line 104 of Director.php
line 158 of main.php
is there a way to fix this or I need to put in the bugs section?
1 July 2008 at 11:39am
Where exactly is this error ocurring?
1 July 2008 at 11:45am
in every page generated in the cms. this error happens for example when you write the title of a new page and press enter (to publish the document) instead of tab (to go to the next field in the new page form)
1 July 2008 at 11:48am
So the error comes up on the CMS admin side? Or the frontend public side?
1 July 2008 at 11:54am
2 July 2008 at 12:54pm
But there are three submit buttons at the base of the admin. Noone ever said that pressing enter activates the "Save" one. Infact, I'm not sure what a browser's default behavior would be with multiple submit buttons on a form. But I imagine it would differ between FF and IE.
Is this functionality really all that critical? I don't think you can expect a user to assume that pressing enter Saves a page. At least I wouldn't. They might assume that it Saves and Publishes.
3 July 2008 at 3:54am
but at least if you press enter, the ideal behaviour will be not put an horrendous error on it, maybe do nothing
3 July 2008 at 9:47am
Hmm, too true. Whether or not this is possible without creating even more confusing behavior is another thing. Perhaps submit it as a bug for the team to look into?
Page: 1 2
|Go to Top||Next >|