Copied to clipboard

Flag this post as spam?

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


  • Graham Carr 277 posts 389 karma points
    Feb 27, 2014 @ 12:47
    Graham Carr
    0

    Multilingual Conditions

    I have a form that is showing multi-lingual text and labels via the # notation (e.g. #Name) which is all working fine in the labels and fields (e.g. dropdowns, etc.)

    The issue I am having is on conditional values, I can this to work fine with English however for instance if I have a Chinese specific form and check for instance #Name IS 姓 to display a textfield it will not work. I have tried changing the condition to #Name and this does not work either.

    Does anyone have any idea what I might be doing wrong??

  • Comment author was deleted

    Feb 27, 2014 @ 12:50

    So works fine in other languages ? when using dictionary items.. ? will try to repro and report back

  • Graham Carr 277 posts 389 karma points
    Feb 27, 2014 @ 14:45
    Graham Carr
    0

    It works fine in English, see:

    http://www.techabsorbents.com/en/

    and click the Open Enquiry Form to the bottom right of the page. If you select I am a Other option you will see the condition work as a textfield appears

    Conversely, if you access:

    http://www.techabsorbents.com/tw

    and click the same Open Enquiry Form link, if you select Other from the first dropdown you will see the condition doesn't work. I have tried using the following as the condition value:

    #Other, please state (the dictionary item)
    其他, 请说明 (the Chinese equivalent)

    and I just can't seem to get it to work for some reason. The version of Umbraco is 6.0.5 and the version of Contour is 3.0.7

     

  • Comment author was deleted

    Feb 27, 2014 @ 15:07

    Must say I haven't tested with chinese so might be a bug, will check 

  • Graham Carr 277 posts 389 karma points
    Feb 27, 2014 @ 15:09
    Graham Carr
    0

    Thanks for the quick response Tim, let me know what you find.

  • Graham Carr 277 posts 389 karma points
    Feb 27, 2014 @ 15:12
    Graham Carr
    0

    Thanks for the quick response Tim, let me know what you find.

  • Graham Carr 277 posts 389 karma points
    Feb 28, 2014 @ 16:42
    Graham Carr
    0

    Hi Tim,

    I was wondering if you had managed to reproduce the issue yet?

    Thanks in advance.

  • Comment author was deleted

    Mar 05, 2014 @ 17:14

    Sorry Graham, we had our yearly meeting last week so didn't have time yet, will make sure to take a look tomorrow, more details then, sorry for the delay

  • Comment author was deleted

    Mar 06, 2014 @ 09:20

    Ok on it now, reporting back within the hour

  • Graham Carr 277 posts 389 karma points
    Mar 06, 2014 @ 09:23
    Graham Carr
    0

    Thanks Tim, hope the meeting went well and was fun :)

  • Comment author was deleted

    Mar 06, 2014 @ 09:34

    Hmm can't reproduce

    I've have a simple condition to only show a field if the value of a field is #test (dictionary item is filled with 欢迎来到)


  • Comment author was deleted

    Mar 06, 2014 @ 09:34

    what version of Contour are you running?

  • Graham Carr 277 posts 389 karma points
    Mar 06, 2014 @ 09:36
    Graham Carr
    0

    The version of Umbraco is 6.0.5 and the version of Contour is 3.0.7

    Can you send me an export of the form you tested with and I will import it and see if it works?

  • Comment author was deleted

    Mar 06, 2014 @ 09:37

    also works with a dropdown list... so mind telling the contour version and maybe a screenshot on how the field settings are setup?

  • Comment author was deleted

    Mar 06, 2014 @ 09:38

    Ok it's probably an old bug then, so would recommend to upgrade contour http://our.umbraco.org/projects/umbraco-pro/contour/documentation/Installation/Upgrade

  • Graham Carr 277 posts 389 karma points
    Mar 06, 2014 @ 09:39
    Graham Carr
    0

    Yes it would seem so as the English version does not work when I use a dictionary item instead. The majority of the forms I am using have customised styling using separate folders within the Views folder, would upgrading remove all of this??

  • Comment author was deleted

    Mar 06, 2014 @ 10:07

    if you don't overwrite the views folder it should be fine

  • Comment author was deleted

    Mar 06, 2014 @ 10:07

    but you"ll need to update the script.cshtml view since that it probably where the fix is

  • Graham Carr 277 posts 389 karma points
    Mar 06, 2014 @ 10:25
    Graham Carr
    0

    I have upgraded the version of Contour to the latest version and have ensured I have copied over the new script.cshtml file to each individual folder in the Views folder however the condition is still not working even when previewing via the CMS (see attached screenshot). Any ideas?? Additionally, are you able to send me an export of the test form you used that worked?

  • Graham Carr 277 posts 389 karma points
    Mar 06, 2014 @ 10:46
    Graham Carr
    0

    Ignore the previous post as it looks like the issue now is due to the fact that I had also made changes to the forms.cshtml file so needed to merge these back in.

    One issue I do have now however which I didn't have before I upgraded is that I now receive the following javascript error when making a selection from the dropdown.

    TypeError: $ is not a function

    I have double-checked and I am still making the calls to the JavaScript files within the head of the document.

    Any ideas??

  • Graham Carr 277 posts 389 karma points
    Mar 06, 2014 @ 10:56
    Graham Carr
    0

    Ignore, all sorted, thanks for your help as usual :)

  • Comment author was deleted

    Mar 06, 2014 @ 11:06

    Super :) always good to check if latest version still has the error :)

Please Sign in or register to post replies

Write your reply to:

Draft