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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Form Questions /

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

userforms -> edit Form does not work


Go to End


5 Posts   3076 Views

Avatar
yaizo

Community Member, 19 Posts

24 August 2009 at 12:03am

hello together,

i have instaled the userform (and trunk) on my localhost side (root). so on it seems all is runnig good and i get the button CREATE -> UserDefineForm.
now i want to edit Form -> select a Field... and Add: i get a white blance site and nothing hapening. so this things i tried:
1. .../dev/build
1. i restarted my computer
2. ?flush=1
3. tested on SilverStripeV. 2.3.2 and 2.3.3

its all the same! i can go back to admin and edit my page, but i dont get the elements of the formular.
the one thing what is displaiing is the "submit" button. thats all.

did i something miss in mysite->_config.php?

thanks, and sorry for my bad english. hope the problem is recognizably.
m. :(

Avatar
yaizo

Community Member, 19 Posts

24 August 2009 at 11:12pm

thank the problem is solved! the folder need to be named: "userforms" ...

Avatar
llowe

Community Member, 2 Posts

14 November 2009 at 11:50pm

Thanks for the post --- I was having the same issue....This solved the problem.

Avatar
kuenkuen82

Community Member, 41 Posts

26 April 2010 at 7:15pm

Anyone still using this module?

I have the module working but I want to customise it, but when I add a HTML block the values are not added into the database

Avatar
Willr

Forum Moderator, 5523 Posts

28 April 2010 at 10:18pm

The HTML Block is simply a LiteralField, It takes no data from the user so the data passed to it is null. Couple options I guess

1) Hide HTMLBlocks from the reports by adding this to EditableLiteralField.php

function showInReports() {
return false;
}

2) Include the content from the html block by overriding the getValueFromData() function. Again by editing EditableLiteralField.php

function getValueFromData($data) {
return $this->getSetting('Content');
}

As for what I would choose for the core - I would lean towards 1 as I'm not sure why you would want a non user submitted field in the submissions tab. Could always have the option in the setting panel to do both.

Let me know how you get on with either one of those.