Jump to:

10994 Posts in 2728 Topics by 1819 members

All other Modules

SilverStripe Forums » All other Modules » UserForms - Unable to add fields

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 437 Views
  • Lukereative
    Avatar
    Community Member
    8 Posts

    UserForms - Unable to add fields Link to this post

    When trying to add a field on a user form I get the error There has been a error above the add field box.
    I used the Chrome dev tools and found that it is giving a javascript error

    Uncaught TypeError: Cannot call method 'split' of undefined


    I have confirmed that I installed the module correctly, in the root with the folder named 'userforms' and I have run a /dev/build?flush=all
    Does anyone have a fix for this?
    Thanks.

  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: UserForms - Unable to add fields Link to this post

    Try doing a flush on the userforms page

    site.com/admin/edit/pageid?flush=1

    That error would indicate one of the templates isn't working (doesn't have a name) so if you still have an issue after flushing, let me know what form field you're trying to add.

    Also for completeness, try create a new Userform page and recreate the form and see if you get an error there.

  • Lukereative
    Avatar
    Community Member
    8 Posts

    Re: UserForms - Unable to add fields Link to this post

    It turns out that since the database/form I was using was upgraded from SS2 to SS3, the database hadn't upgraded quite right.
    I managed to find and fix the problem by comparing it to a working userform on another database which directed me to the fact that there were no entries in the EditableFormField_Live Table so I fixed it by copying the rows in the EditableFormField Table to the EditableFormField_Live Table.

  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: UserForms - Unable to add fields Link to this post

    Must have been quite an old 2.* site, that migration took place probably 2-3 years ago now. https://github.com/silverstripe/silverstripe-userforms/blob/master/code/tasks/UserFormsVersionedTask.php is the task you need to run to republish all the form fields but sounds like you've got it sorted by hand.

    437 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.