diff --git a/code/multitab-validation/MultiTabPage.php b/code/multitab-validation/MultiTabPage.php index a0f7b72..91e0eeb 100644 --- a/code/multitab-validation/MultiTabPage.php +++ b/code/multitab-validation/MultiTabPage.php @@ -3,6 +3,7 @@ namespace SilverStripe\FrameworkTest\Model; use Page; +use SilverStripe\Forms\EmailField; use SilverStripe\Forms\RequiredFields; use SilverStripe\Forms\TextField; @@ -29,7 +30,7 @@ public function getCMSFields() { $fields = parent::getCMSFields(); $fields->addFieldToTab("Root.Second", TextField::create("SecondTabFirstField")); - $fields->addFieldToTab("Root.Third", TextField::create("ThirdTabFirstField")); + $fields->addFieldToTab("Root.Third", EmailField::create("ThirdTabFirstField")); $fields->addFieldToTab("Root.Third", TextField::create("ThirdTabSecondField")); $fields->addFieldToTab("Root.Fourth", TextField::create("FourthTabFirstField")); return $fields;