5098 Posts in 1518 Topics by 1115 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1050 Views |
-
Confirmation message on custom forms

28 April 2009 at 3:57am Last edited: 28 April 2009 3:58am
Hello, i've got a custom form of this type :
$fields = new FieldSet(
new TextField('Email'),
new PasswordField("Password"),
new LabelField("Forgot your password ?'.")
);
// Création des actions
$actions = new FieldSet(
new FormAction('doLogin', 'Login'),
new FormAction('generateNewPass', 'Forgot my password')
);
$validator = new RequiredFields('Email', 'password');
return new Form($this, 'loginForm', $fields, $actions, $validator);I wan't to put a confirmation message on the "Forgot my password" button.
Does anyone know how to do this ?thanks.
-
Re: Confirmation message on custom forms

29 April 2009 at 12:16am
Found we must use a ConfirmedFormAction:
// Création des actions
$actions = new FieldSet(
new FormAction('doLogin', 'Login'),
new ConfirmedFormAction('generateNewPass', 'Forgot my password')
);
| 1050 Views | ||
|
Page:
1
|
Go to Top |

