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.

All other Modules /

Discuss all other Modules here.

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

Email submission to limited to 50 characters?


Reply


2 Posts   951 Views

Avatar
LesC

Community Member, 70 Posts

8 July 2009 at 5:07am

Hi,

I've got a client who needs to have several email addresses sent the contents of submitted form. Unfortunately it appears that the EMail submission to field is limited to 50 characters:

http://silverstripe.org/archive/show/123663#post123663 (would have commented on that post, but it's archived).

Does anyone know of a way to get round this? I'm running SS 2.3.0 and userforms 0.1.0 - don't want to upgrade UserForms as I find it very buggy.

Cheers

Les

Avatar
UncleCheese

Forum Moderator, 4093 Posts

8 July 2009 at 5:32am

I would just decorate the object and set it to a different datatype.

class MyUserForm extends DataObjectDecorator
{
function extraStatics()
{
return array('db' => array('Email' => 'Text'));
}
}

DataObject::add_extension("UserDefinedForm","MyUserForm");