Copied to clipboard

Flag this post as spam?

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


  • Preetee Gangoosirdar 56 posts 257 karma points
    Oct 13, 2014 @ 09:01
    Preetee Gangoosirdar
    0

    Conditional login not working on a multi language form on umbraco v 4.7.0 using contour v 3.0.6

    Hi all,

    Grateful if someone can help me out on this issue. Am having a multi language form using using contour v 3.0.6 on umbraco v 4.7.0 . The conditional logic seem not working with the dictionary items as values in a radiobutton list or Checkbox list type.

    Please find screenshot

    enter image description here


    The script generated.

    <script src="/umbraco/plugins/umbracocontour/scripts/frontend/contourform.js" type="text/javascript"></script>
    <script type="text/javascript">
    
        function PopulateRecordValues() {
            contourFieldValues = new Array();
    
        }
    
        function CheckRules() {
    
    
                        if(
                                        contourFieldValues["54a3aee1-456e-4fb6-949e-97779924ac53"].indexOf("#ExperiencedParticipant") != -1
                        )
                        {
                                 $("#fab7da75-3087-4e84-9735-875fda6f7e94").parent(".contourField").show();
    
                        }
                        else
                        {
                                 $("#fab7da75-3087-4e84-9735-875fda6f7e94").parent(".contourField").hide();
                        }
    
    
        }
    </script>
    

    Am using those scripts in my template

    <script type="text/javascript" src="/scripts/jquery-1.11.0.min.js"></script>
      <script type="text/javascript" language="javascript" src="/scripts/jquery-ui-1.10.4.custom.min.js"></script>
      <script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.10.0/jquery.validate.min.js" type="text/javascript"></script>    
      <script src="http://ajax.aspnetcdn.com/ajax/mvc/3.0/jquery.validate.unobtrusive.min.js" type="text/javascript"></script>   
    

    However when i do a preview of the form in contour in get those script

       <script type="text/javascript" src="scripts/jquery-1.5.1.min.js"></script>
    <script type="text/javascript" src="scripts/jquery-ui-1.8.11.min.js"></script>
    <script type="text/javascript" src="scripts/jquery.validate.min.js"></script>
    <script type="text/javascript" src="scripts/jquery.validate.unobtrusive.min.js"></script>
    
    <script type="text/javascript">
    
            function PopulateRecordValues() {
                contourFieldValues = new Array();
    
            }
    
            function CheckRules() {
    
    
                            if(
                                            contourFieldValues["54a3aee1-456e-4fb6-949e-97779924ac53"].indexOf("#ExperiencedParticipant") != -1
                            )
                            {
                                     $("#fab7da75-3087-4e84-9735-875fda6f7e94").parent(".contourField").show();
    
                            }
                            else
                            {
                                     $("#fab7da75-3087-4e84-9735-875fda6f7e94").parent(".contourField").hide();
                            }
    
    
            }
        </script>

    Thank you in advance for your kind response and help.

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Oct 13, 2014 @ 09:13
    Dennis Aaen
    0

    Hi Preetee.

    Yes, there have been some problems with dictionary items not working on the the conditional logic. It should have been fixed, check this issue from the issue tracker. http://issues.umbraco.org/issue/CON-402

    So I think that you should try upgrade to 3.0.16 or a later version of Contour.

    But it means that you you also need to upgrade your Umbraco installation if you should use 3.0.16 or a later version of Contour.

    Hope it´s an option for you to upgrade your Umbraco installation, and your Contour.

    Hope this helps,

    /Dennis

  • Comment author was deleted

    Oct 13, 2014 @ 09:19

    Yup like Dennis says it's an old issue that has been fixed so upgrading is the way forward

  • Preetee Gangoosirdar 56 posts 257 karma points
    Oct 13, 2014 @ 09:29
    Preetee Gangoosirdar
    100

    Hi Dennis and Tim thanks you for your kind feedback.Good day

  • Fuji Kusaka 2203 posts 4220 karma points
    Oct 13, 2014 @ 09:53
    Fuji Kusaka
    0

    Hi Tim,

    I think best way of doing this is to upgrade both umbraco and contour.

    //fuji

  • 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