Jump to:

10994 Posts in 2728 Topics by 1819 members

All other Modules

SilverStripe Forums » All other Modules » Email submission to limited to 50 characters?

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 920 Views
  • LesC
    Avatar
    Community Member
    70 Posts

    Email submission to limited to 50 characters? Link to this post

    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

  • UncleCheese
    Avatar
    4085 Posts

    Re: Email submission to limited to 50 characters? Link to this post

    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");

    920 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.