Jump to:

1999 Posts in 1408 Topics by 613 members

Form Questions

SilverStripe Forums » Form Questions » userforms -> edit Form does not work

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

Page: 1
Go to End
Author Topic: 2090 Views
  • yaizo
    Avatar
    Community Member
    19 Posts

    userforms -> edit Form does not work Link to this post

    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.

  • yaizo
    Avatar
    Community Member
    19 Posts

    Re: userforms -> edit Form does not work Link to this post

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

  • llowe
    Avatar
    Community Member
    2 Posts

    Re: userforms -> edit Form does not work Link to this post

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

  • kuenkuen82
    Avatar
    Community Member
    41 Posts

    Re: userforms -> edit Form does not work Link to this post

    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

  • Willr
    Avatar
    Forum Moderator
    5482 Posts

    Re: userforms -> edit Form does not work Link to this post

    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.

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