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


Reply

2 Posts   633 Views

Avatar
web2works

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?

Thanks

Avatar
Willr

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.