Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Form breaks when adding an attach document field

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 2174 Views
  • Mishy
    Avatar
    Community Member
    24 Posts

    Form breaks when adding an attach document field Link to this post

    My form works fine when I don't have an attach document field. The form submits and gives the user a message after submission.

    However, when I add an attach document field the form doesn't work.

    Any ideas please.

  • Willr
    Avatar
    Forum Moderator
    5464 Posts

    Re: Form breaks when adding an attach document field Link to this post

    Post your code to http://www.pastie.org/ or something and link to it from here. Quite a few things could be wrong, its hard to debug without seeing the code!

  • Mishy
    Avatar
    Community Member
    24 Posts

    Re: Form breaks when adding an attach document field Link to this post

    Ooooops! Forgot about that, sorry.

    www.pastie.org doesn't work for some reason but you can view it at http://www.search4pharma.co.uk/contact/.

  • Willr
    Avatar
    Forum Moderator
    5464 Posts

    Re: Form breaks when adding an attach document field Link to this post

    ok well one of the errors is with Yorkshire & The Humber - in strict XHTML & needs to be a & thats why it doesnt work in Firefox. Well doesnt for me anyway

  • Mishy
    Avatar
    Community Member
    24 Posts

    Re: Form breaks when adding an attach document field Link to this post

    OK thanks willr. SS obviously doesn't convert it to an & as I built the form inside the CMS.

    There still appears to be a problem with the attach document field but at least the form shows up in FF now - so thanks for that!

    The other problem I have is that if there are no sub pages (i.e. links that appear in the sidebar if level2 links are present) under the Temporary page, then the Temp page won't validate in FF. The Temp page is an Article Holder page. I have tried changing the page type to a normal Page and that doesn't work either. So I think it has something to do with not having any level2 links present.

    Link is http://www.search4pharma.co.uk/temporary/

  • Mishy
    Avatar
    Community Member
    24 Posts

    Re: Form breaks when adding an attach document field Link to this post

    Is anyone able to help me with these issues please?

    Many thanks in advance
    Michelle

  • Liam
    Avatar
    Community Member
    470 Posts

    Re: Form breaks when adding an attach document field Link to this post

    Well based on that outputted code, you're missing a closing <div> tag right before the body tag. If I insert one right before </body> it validates.

    I'd guess the menu code is missing the closing div tag. I'd look around the menu 2 code for a closing div, might have to move it outside that regardless of if there are any sub pages or not.

    Again, just guessing but I'd assume the missing closing tag is only being written to the page if there are sub pages.

  • Mishy
    Avatar
    Community Member
    24 Posts

    Re: Form breaks when adding an attach document field Link to this post

    Thanks LeeUmm. I found the only way I could fix it was to use a HomePage template for now until the agency has some sub-pages to add.

    Any ideas about the attach doc field breaking my form on the Contact Page?
    http://www.search4pharma.co.uk/contact/

    In FF I get the following error:

    Error
    The website server has not been able to respond to your request.

    In IE I get this error:
    HTTP 500 Internal Server Error

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