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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

Change Type on EmailField


Go to End


2 Posts   914 Views

Avatar
web2works

Community Member, 50 Posts

14 March 2011 at 3:46am

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

Thanks

Avatar
Willr

Forum Moderator, 5523 Posts

15 March 2011 at 9:58pm

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.