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.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Change Type on EmailField


2 Posts   633 Views


14 March 2011 at 3:46am Community Member, 50 Posts

Hi, is it possible to change the type on the email field so the iPhone recognises it?



15 March 2011 at 9:58pm Forum Moderator, 5511 Posts

Not the built in Email class. You could create your own Email field subclass really easily. Subclass EmailField and override the Field() function to return the Html you want. Will be all a lot easiest in 3.0 when you will be able to theme your own form fields.