Jump to:

1851 Posts in 1606 Topics by 561 members

Blog Module

SilverStripe Forums » Blog Module » Userform v0.5: Issue Adding Fields with SilverStripe 3

Discuss the Blog Module.

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

Page: 1 2
Go to End
Author Topic: 2928 Views
  • jung921
    Avatar
    Community Member
    2 Posts

    Userform v0.5: Issue Adding Fields with SilverStripe 3 Link to this post

    Hi,

    I am having a problem with the userform module (tried with both version 0.5 and Latest master build from Git) on SilverStripe 3.

    When I use userform v0.5 --> nothing happens and cannot even display the page after I set page as a user defined form page.
    When I use latest master build that I downloaded from git (04 July 2012) --> it is much better but I cannot add any form field.

    When I go to create fields, I get a blank white screen (the URL of this page is /admin/pages/edit/show/108) and nothing happened.
    I tried both /dev/build and /admin?flush=all after I installed this module.

    One thing I noticed from latested module is that in the configuration file (_config.php) it is referencing FieldEditor.js from Javascript folder.

    LeftAndMain::require_javascript('userforms/javascript/FieldEditor.js');
    LeftAndMain::require_css('userforms/css/FieldEditor.css');

    However, in the actual Javascript folder only have one file - "UserForm.js"
    --> I tried to rename UserForm.js to FieldEditor.js but no luck.
    also tried to change the path of the file, but again I had no luck.

    Could anyone help me to resolve this issue?

    Thanks in advance for your help.

  • Morgan
    Avatar
    Community Member
    5 Posts

    Re: Userform v0.5: Issue Adding Fields with SilverStripe 3 Link to this post

    Hi,
    I had the same issues then tried latest 7.7.2012 build
    http://www.silverstripe.org/assets/modules/master/silverstripe-userforms-master-HEAD.tar.gz

    prerelease 3.0.1 rc1
    http://www.silverstripe.org/assets/releases/SilverStripe-framework-v3.0.1-rc1.tar.gz

    Dev/build then flushed the cache.

    It works fine except that when I try to build a contact us form, they are saved in the server but no email is sent to the recepient.

  • Hattori
    Avatar
    Community Member
    20 Posts

    Re: Userform v0.5: Issue Adding Fields with SilverStripe 3 Link to this post

    I attached the build which works on the SS3 stable. And this is forum for Blog Module :-|

  • jung921
    Avatar
    Community Member
    2 Posts

    Re: Userform v0.5: Issue Adding Fields with SilverStripe 3 Link to this post

    @Hattori: thanks for the attached file. I tried this file but it generates the same error. (see attached screenshot for your information please)
    and you are right. this is a forum for the blog module indeed. my apologies.

  • SimonA
    Avatar
    Community Member
    3 Posts

    Re: Userform v0.5: Issue Adding Fields with SilverStripe 3 Link to this post

    I also have this same problem. The userforms module just doesn't work.

    Does anyone have any ideas as to what might be causing this?

    Attached Files
  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: Userform v0.5: Issue Adding Fields with SilverStripe 3 Link to this post

    Do you get any javascript errors on the page?

  • SimonA
    Avatar
    Community Member
    3 Posts

    Re: Userform v0.5: Issue Adding Fields with SilverStripe 3 Link to this post

    I get no javascript errors, I'm using chrome's developer tools. No exceptions appear and there are no php errors either. I have error reporting set to all. Only thing I can think of is to load it up in netbeans and step through it. Also the _config.php is referencing a js file that does not exist. The same one that was mentioned in a previous post. I changed it to UserForms.js which is the only js file in the directory but it had no effect. I am using the latest trunk copy too.

    Thanks

  • Thommo
    Avatar
    Community Member
    2 Posts

    Re: Userform v0.5: Issue Adding Fields with SilverStripe 3 Link to this post

    Frustrated with this issue too.

    I am just starting out with Silverstripe and wanted to make use of Userforms. Initially it didn't work and I read a post about installing the HEAD file. I managed to get it going.

    Since then, I rebuilt the machine and have tried all manner of installations (include the HEAD file) but cannot create a field in the form. The drop down list box appears, but when I click 'Add', nothing happens. No error on screen and I can go to other tabs without issue.

    I've flushed and dev/built until my fingers hurt. I've looked at the composer.json file and also find it is referencing files in the javascript folder that don't exist.

    It feels that I'm almost there, but its just not happening.

    Any ideas about what might be wrong, or about what I might be able to try..
    (from ANYONE!!)

    Thanks

    I've just read through the FieldEditor.php file and saw (if I understand the code correctly) that if a field type is not selected, that an error message should be displayed to the user.

    I went back and tried to create a form field without defining a type - same result as before (Nothing).. So I'm not even getting an error message..

    2928 Views
Page: 1 2
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.