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

userforms


Reply

8 Posts   1341 Views

Avatar
studio6

28 June 2010 at 11:27am (Last edited: 17 April 2012 9:44pm), Community Member, 14 Posts

i have set up userforms in my root and dev/build?flush=1 but I go to the forms tab and click the button to add any type of field and the page reloads to a completely blank page. i cant work out why this is can anyone help me

Avatar
Willr

28 June 2010 at 12:03pm (Last edited: 17 April 2012 9:44pm), Forum Moderator, 5511 Posts

Hi ftw, more information would help.

What version of SilverStripe and what version of UserForms?

Have you tried reloading the admin interface with a flush - admin?flush=1. Is your site running in live mode or devmode? You can also try and disable combination of files (which sometimes causes trouble) by adding

Requirements::set_combined_files_enabled(false);

In your _config.php file.

Avatar
studio6

28 June 2010 at 12:49pm (Last edited: 17 April 2012 9:44pm), Community Member, 14 Posts

im running ss 2.4 and i think im running forms 0.2 i just got the download from the getting started page i try add Requirements::set_combined_files_enabled(false); but nothing you can see the site at hookbins.co.nz its live

Avatar
Willr

28 June 2010 at 12:59pm (Last edited: 17 April 2012 9:44pm), Forum Moderator, 5511 Posts

For SilverStripe 2.4 you will need UserForms 0.3. You can download the latest version from http://silverstripe.org/assets/modules/trunk/userforms-trunk-r106720.tar.gz

Avatar
darksist

17 April 2012 at 8:34pm (Last edited: 17 April 2012 9:44pm), Community Member, 1 Post

Hi,

i'm allready using userforms but i need get and record submitters ip address (will be other browser, referer etc. data)

Is it possible?

Avatar
Willr

18 April 2012 at 9:42pm Forum Moderator, 5511 Posts

Yes, decorator the SubmittedForm object and add the fields you want. Populate those fields when you do a onAfterWrite() on a SubmittedForm object. See the documentation on decorators for more information

http://doc.silverstripe.org/sapphire/en/reference/dataobjectdecorator

Avatar
Naren

14 September 2013 at 10:23pm Community Member, 21 Posts

Hi all,

I have installed silverstripe latest and installed the userform module.

After installation I am getting below mentioned error while login in to admin and can not login on that.

Fatal error: Access level to UserDefinedForm::$db must be public (as in class Page) in /home/sproncoc/public_html/newsite/userforms/code/model/UserDefinedForm.php on line 402

Please let me know how to fix this error.

Thanks in advance

Avatar
Willr

14 September 2013 at 10:24pm Forum Moderator, 5511 Posts

You have the wrong version of user forms. Master is for 3.1, use branch 1.0 for 3.0, https://github.com/silverstripe/silverstripe-userforms/tree/1.0