10394 Posts in 2203 Topics by 1714 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 802 Views |
-
Email submission to limited to 50 characters?

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
-
Re: Email submission to limited to 50 characters?

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");
| 802 Views | ||
|
Page:
1
|
Go to Top |

