Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » massive error when user press enter in the cms

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1 2
Go to End
Author Topic: 32698 Views
  • dospuntocero
    Avatar
    Community Member
    54 Posts

    massive error when user press enter in the cms Link to this post

    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

    Controller->run(Array)
    line 104 of Director.php

    Director::direct(admin/)
    line 158 of main.php

    is there a way to fix this or I need to put in the bugs section?

  • Double-A-Ron
    Avatar
    Community Member
    603 Posts

    Re: massive error when user press enter in the cms Link to this post

    Where exactly is this error ocurring?

  • dospuntocero
    Avatar
    Community Member
    54 Posts

    Re: massive error when user press enter in the cms Link to this post

    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)

  • Double-A-Ron
    Avatar
    Community Member
    603 Posts

    Re: massive error when user press enter in the cms Link to this post

    So the error comes up on the CMS admin side? Or the frontend public side?

  • dospuntocero
    Avatar
    Community Member
    54 Posts

    Re: massive error when user press enter in the cms Link to this post

    admin side

  • Double-A-Ron
    Avatar
    Community Member
    603 Posts

    Re: massive error when user press enter in the cms Link to this post

    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.

    Aaron

  • dospuntocero
    Avatar
    Community Member
    54 Posts

    Re: massive error when user press enter in the cms Link to this post

    but at least if you press enter, the ideal behaviour will be not put an horrendous error on it, maybe do nothing

  • Double-A-Ron
    Avatar
    Community Member
    603 Posts

    Re: massive error when user press enter in the cms Link to this post

    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?

    32698 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.