Jump to:

1976 Posts in 1306 Topics by 607 members

Form Questions

SilverStripe Forums » Form Questions » User Defined Form limits

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

Page: 1
Go to End
Author Topic: 1553 Views
  • SuperBlues
    Avatar
    Community Member
    25 Posts

    User Defined Form limits Link to this post

    Hi, I am trying to enter 17 questions within a user defiined form but after the 14th question I get a 'javascript parse error' when saving the form. All other forms within the site with fewer quaetions work fine.
    Is there a limit to the number of questions within the form?

  • Willr
    Avatar
    Forum Moderator
    5464 Posts

    Re: User Defined Form limits Link to this post

    No limit. Though I haven't tested to see where the point where mysql gives up though. Is the 17ths a special type of field?

  • SuperBlues
    Avatar
    Community Member
    25 Posts

    Re: User Defined Form limits Link to this post

    There are 12 text fields and 5 checkboxes with 'Yes' and 'No' answer options. I have tried various combinations and entering the fields in different orders but get the error whichever way I try.

  • Bruce B
    Avatar
    Community Member
    145 Posts

    Re: User Defined Form limits Link to this post

    I'm also hitting a limit in building a user-defined form. Mine is at around 14 questions where most are radio fields with 5 options. Is it possible that I'm hitting a MySQL statement limit?

    I've copied the database onto my own machine and I can continue to enter questions, so the limit seems to be set on the server. Any ideas as to how I can debug this? I'll finish setting up the form locally, then attempt to reload the whole database back to the production server. (and hope I don't need to edit the form later!)

  • Bruce B
    Avatar
    Community Member
    145 Posts

    Re: User Defined Form limits Link to this post

    The problem is a PHP memory limit on the server. Our hosting provider only allows 32Mb and these forms need more. I can edit the form quite happily when its running locally on my laptop (128 Mb PHP memory_limit) right up to its final size which is more than double the size where our hosting provider runs out.

    This means copying the whole database to my laptop, editing the page, then uploading again. I think I can get away with just the a subset of the database but its probably safer to move the lot each time.

    I wonder if other hosts offer more than 32Mb? My current host (Jumba) have offered such good service in all other regards, I don't really want to switch just to fix this.

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