Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive /

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

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

How do i define what the "Enter" button does?


Reply


981 Views

Avatar
cobi

Community Member, 5 Posts

1 February 2008 at 4:07am

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