Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $name = new TextField('FromName', 'Il tuo nome');
- $from = new TextField('FromEmail', 'Il tuo indirizzo email');
- //$to = new DropDownField('ToEmail', 'Chi desideri contattare?', $map);
- $to = new GroupedDropdownField(
- $name = "ToEmail",
- $title = _t("Contact", "Chi desideri contattare?"),
- $groupedDropDownEmail,
- $ToEmailVal
- );
- $msg = new TextAreaField('Message', 'La tua richiesta');
- $fields = new FieldList($name, $from, $to, $msg);
- $actions = new FieldList(
- new FormAction('doSendContactForm', 'Invia richiesta')
- );
- $required = new RequiredFields(
- array('FromName', 'FromEmail', 'Message')
- );
- $form = new Form($this, 'ContactForm', $fields, $actions, $required);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement