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??
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
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
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
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??
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?
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.
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
So works fine in other languages ? when using dictionary items.. ? will try to repro and report back
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
Must say I haven't tested with chinese so might be a bug, will check
Thanks for the quick response Tim, let me know what you find.
Thanks for the quick response Tim, let me know what you find.
Hi Tim,
I was wondering if you had managed to reproduce the issue yet?
Thanks in advance.
Comment author was deleted
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
Ok on it now, reporting back within the hour
Thanks Tim, hope the meeting went well and was fun :)
Comment author was deleted
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
what version of Contour are you running?
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
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
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
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
if you don't overwrite the views folder it should be fine
Comment author was deleted
but you"ll need to update the script.cshtml view since that it probably where the fix is
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?
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??
Ignore, all sorted, thanks for your help as usual :)
Comment author was deleted
Super :) always good to check if latest version still has the error :)
is working on a reply...