Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Peter Prokein 29 posts 105 karma points
    Apr 08, 2013 @ 23:25
    Peter Prokein
    0

    hidden fields do not contain the ID attribute - bug report filed

    Currently (3.0.9) hidden fields do not have the ID attribute.  I added a bug report to the issue tracker at http://issues.umbraco.org/issue/CON-327

    In the meantime, if you are using code that requires you to access the hidden field, use the name property instead.  For example, to set the value of a hidden field using jQuery you would use this (where myValue is a defined variable):

    $('[name="c81f64512-7b29-32c9-58dc-914109f4ed47"]').val(myValue);

     

  • Comment author was deleted

    Apr 09, 2013 @ 11:12

    Thanks for reporting, issue has been fixed and will be part of 3.0.10

    To patch on a existing 3.0.9 install you can simply update the view 

    \Umbraco\plugins\umbracoContour\Views\FieldType.HiddenField.cshtml

    And make sure the name and id attribute are correct 

    name="@Model.Name" id="@Model.Id"

    Cheers,
    Tim 

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies