Jump to:

10979 Posts in 2722 Topics by 1815 members

All other Modules

SilverStripe Forums » All other Modules » Useforms not closing radio input tags

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 643 Views
  • juneallison
    Avatar
    Community Member
    108 Posts

    Useforms not closing radio input tags Link to this post

    Hi,

    I was cross browser testing my userform and it doesn't display properly in IE9. In IE9 it doesn't seem to recognize the style sheet. I have another form that doesn't use the radio buttons and it displays just fine. The form with radio buttons displays fine in all other browsers.

    I took a look at the code and it looks like none of the radio input tags are closed. I tried to determine where these were generated in the module code. If someone could tell me where to find this code, I think closing this tag may resolve my browser issue.

    Thanks!

  • juneallison
    Avatar
    Community Member
    108 Posts

    Re: Useforms not closing radio input tags Link to this post

    I wasn't able to determine where the radio button input code was being created but I was able to somewhat resolve the problem.

    1. I changed my doctype from strict to transitional for the UserForm template. This was forgiving of the missing close tags on the radio input tags.
    2. My entire form was getting throw into a paragraph tag. Via the admin tinymce wouldn't allow me to have no surrounding tags on $UserDefinedFrom ... so I changed the p to a div.

    That seem to correct my ie9 issue.

  • Willr
    Avatar
    Forum Moderator
    5497 Posts

    Re: Useforms not closing radio input tags Link to this post

    I wasn't able to determine where the radio button input code was being created but I was able to somewhat resolve the problem.

    UDF simply creates Radio options through the built in classes SS provided. If somethings not closing I would think it's coming from the form field - https://github.com/silverstripe/sapphire/blob/2.4/forms/OptionsetField.php#L82.

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