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.

All other Modules /

Discuss all other Modules here.

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

UserForms 0.2


Go to End


185 Posts   48317 Views

Avatar
margotta

Community Member, 1 Post

10 July 2009 at 4:19am

Edited: 10/07/2009 5:03pm

same problem of drye and paschka

when i try to add a field and then push 'add' buttom
browser try to load 'www.mysite.com/admin/EditForm'

but the page is empty!!!!

please help me...

(sorry for my awful english...)

Avatar
amir99

Community Member, 5 Posts

14 July 2009 at 4:59am

I have installed the module from trunk, and after some initial testing it seems to work fine, so far.
My problem is this: I have defined 2 page types extending UserDefinedForm (each page type extends UserDefinedForm and UserDefinedForm_Controller).
But in the dropdown list in the CMS containing the page types, I see both of them with the same label - 'User defined form' instead of the actual page name I gave them.

It still works, but not very convenient as I have to guess which is which, and of course if I will have more pages extending UserDefinedForm it will become unusable.

Avatar
Carbon Crayon

Community Member, 598 Posts

14 July 2009 at 5:31am

This is most likely because there is an $add_action defined in the userforms class.

To get around the naming issue define a new static to your page model:

static $add_action="Your Page Name";

This will then replace the name in the dropdown list.

Hope that helps

Aram

Avatar
amir99

Community Member, 5 Posts

14 July 2009 at 5:40am

Thanks very much aram.
It did the trick!

Avatar
skc

Community Member, 9 Posts

14 July 2009 at 6:18am

I can't get the user defined form to e-mail submissions...they show up in the "submitted" tab in the CMS but no e-mail is generated. Any clues on what I can do to remedy this?

Avatar
kateh

Community Member, 18 Posts

14 July 2009 at 9:42am

Edited: 14/07/2009 9:45am

As reported by Kateh, translated forms are not working when upgrading: no fields can be added and no email recipients (error: I can't handle sub-URLs of a CMSMain object).

Nevertheless, you can create a new translation of the form and adding fields should work, the problem is you can't see them in the published page.

SOLUTION: Changing by hand the ParentID of the fields in the EditableFormField table. I'm sure willr will correct the faulty code in a blink!

Sorry I'm responding so late. But what do you mean by change the ParentID Juanitou? Does it have something to do with the missing pages and errors creating fields for my secondary language?

http://www.lasergraph.fr/admin/EditForm/field/Reports/deletesubmission/?id=1

I get a page not found when I try to delete an old submission for example...
I get an error creating a field when I try to add a field...
Page not found for trying to add email recipient info...

I'm really stuck with this secondary language not reacting to the latest userforms 0.2. I have installed and reinstalled the latest mollom, spamprotection, userforms and Silver Stripe 2.3.2 and it still doesn't work.

Creating a new user defined form page creates the same results.

And the only way to see the submitted forms in English is to see the submissions, but I can only see the first 10 and there are 16. Since I can't access the next page I'm creating problems for my client.

Can anyone help please?
Kate

Avatar
Big Bang Creative

Community Member, 92 Posts

14 July 2009 at 8:14pm

@Juanitou re. change html for fields

I actually meant the html generated for the frontend, not the email template.

Avatar
kateh

Community Member, 18 Posts

14 July 2009 at 9:41pm

Edited: 14/07/2009 11:16pm

And where do I find this html page and what ID do I need to change?

I did make a translation of the working French form and adding the fields in the translated English copy did work at first. Then form fields and email recipient info just disappeared when I went to another page, even after saving and publishing the new form page.

Is this an actual bug that I should ticket? Or should I just keep reinstalling all the modules over and over again?

Go to Top