Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

All other Modules /

Discuss all other Modules here.

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

[Solved] Haven't changed anything after installing userform module


Go to End
Reply


11 Posts   2434 Views

Avatar
Mitt

Community Member, 7 Posts

19 January 2011 at 11:28pm

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

Avatar
Mitt

Community Member, 7 Posts

20 January 2011 at 6:02pm

Can't help anybody , please?

Avatar
Willr

Forum Moderator, 5513 Posts

20 January 2011 at 8:41pm

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.

Avatar
Mitt

Community Member, 7 Posts

21 January 2011 at 7:25pm

@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
Avatar
Willr

Forum Moderator, 5513 Posts

22 January 2011 at 1:01pm

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...)?

Avatar
Mitt

Community Member, 7 Posts

22 January 2011 at 7:32pm

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

Avatar
Willr

Forum Moderator, 5513 Posts

23 January 2011 at 1:03pm

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?

Avatar
Mitt

Community Member, 7 Posts

23 January 2011 at 5:01pm

Edited: 23/01/2011 5:03pm

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?

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

Go to Top