Jump to:

10993 Posts in 2727 Topics by 1818 members

All other Modules

SilverStripe Forums » All other Modules » [Solved] Haven't changed anything after installing userform module

Discuss all other Modules here.

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

Page: 1 2
Go to End
Author Topic: 2317 Views
  • Mitt
    Avatar
    Community Member
    7 Posts

    [Solved] Haven't changed anything after installing userform module Link to this post

    Hi everyone,
    I installed user form module and , then rebuild my database.
    But I haven't see any changes when creating page in my administration page.
    What happened to me?

    Could somebody fix my problem?
    Thanks ...

  • Mitt
    Avatar
    Community Member
    7 Posts

    Re: [Solved] Haven't changed anything after installing userform module Link to this post

    Can't help anybody , please?

  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: [Solved] Haven't changed anything after installing userform module Link to this post

    So you don't see the new 'User Defined Form' option in the 'Create Page' dropdown in your sitetree?

    Things to check
    - Check the folder is named 'userforms' not 'userforms-r23'
    - Reload the admin with a ?flush=1.
    - Ensure userforms folder is at the root level of your SilverStripe install and is not nested inside mysite / sapphire.

  • Mitt
    Avatar
    Community Member
    7 Posts

    Re: [Solved] Haven't changed anything after installing userform module Link to this post

    @Willr => Thanks for your reply.

    Yes, I don't see the new 'User Defined Form' option in the 'Create Page' dropdown in my sitetree.
    And the three things you said are already done(attached screenshots). But in vain, brother.

    How can I do for that?

    Attached Files
  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: [Solved] Haven't changed anything after installing userform module Link to this post

    Strange! can you check the actual page type exists? should be in userforms/code/UserDefinedForm.php.

    Does your database have any UserDefinedForm related tables (EditableFormField, SubmittedForm...)?

  • Mitt
    Avatar
    Community Member
    7 Posts

    Re: [Solved] Haven't changed anything after installing userform module Link to this post

    Ya ....
    It's ok with userforms/code/UserDefinedForm.php.
    And I didn't create any tables in my database yet , so I think my database won't have any UserDefinedForm related tables.
    I reinstall that module , rebuild database but it still haven't appear in my admin page.
    (Most of silverstripe tutorials aren't complete without userforms module , so I can't keep studying tutorials. )

    Is there any possible facts that I have to check?

    Thanks again...

  • Willr
    Avatar
    Forum Moderator
    5508 Posts

    Re: [Solved] Haven't changed anything after installing userform module Link to this post

    And I didn't create any tables in my database yet , so I think my database won't have any UserDefinedForm

    When you do a /dev/build it should create the tables for you. If it is not creating any database tables even after dev/build then for some reason it is not reading that file. Check there is a _config.php file in the userforms/ folder and perhaps check permissions?

  • Mitt
    Avatar
    Community Member
    7 Posts

    Re: [Solved] Haven't changed anything after installing userform module Link to this post

    Ya .. you are right,brother.
    It happens cause of permission.(Thanks for your help )

    Now, I see UserForm Page type in admin page but I create that kind of page type ,the error shows "The CMS requires that you have JavaScript enabled.".(I searched "how to enable Javascript" , but I didn't see any page writing about that.)
    So could you please tell me how to enable Javascript?

    In _config.php,
    "
    <?php

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

    ?>
    "

    But there is just only one .js file(userforms/javascript/UserForm.js) in my folder.For CSS, it's ok.
    Is it default?

    ................

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