Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » How do i define what the "Enter" button does?

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

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

Page: 1
Go to End
Author Topic: 947 Views
  • cobi
    Avatar
    Community Member
    5 Posts

    How do i define what the "Enter" button does? Link to this post

    Hi, here is my situation. I have created a login Form with the following fields and actions:

    if(!$fields) {
                $fields = new FieldSet(
                   new HiddenField("AuthenticationMethod", null, $this->authenticator_class, $this),
    new LabelField("Usage Interne", "UsageInterne"),
                   new TextField("Email", "Représentant",
                      Session::get('SessionForms.MemberLoginForm.Email'), null, $this),
    new CheckboxField("Remember", "mémorsier mon nom",
                      Session::get('SessionForms.MemberLoginForm.Remember'), $this),
                   new EncryptField("Password", "Mot de passe", null, $this)
                );
             }
             if(!$actions) {
                $actions = new FieldSet(
    new FormAction("forgotPassword", "Vous avez oublié votre
    mot de passe?"),
    new FormAction("register", "S'INSCRIRE"),
                   new FormAction("dologin", "")
                );
             }

    when i'm on the password field, and I press the "Enter" button, it brings me to the forgotPassword. How can I make it go the the "dologin" action when I press the "Enter" button.

    Thanks

    Steve

    947 Views
Page: 1
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.