I have a checkbox that I want to style by renaming the FieldType.CheckBox.cshtml to correct name.
The name in admin is "Använd leveransadressen" it contains Swedish characters.
I have tried naming it to:
if (System.IO.File.Exists(HttpContext.Current.Server.MapPath(string.Format("{0}/Forms/{1}/{2}.cshtml", Config.ViewsPath, formId, FolderName(fieldName)))))
if (System.IO.File.Exists(HttpContext.Current.Server.MapPath(string.Format("{0}/Forms/{1}/Fieldtype.{2}.cshtml", Config.ViewsPath, formId, viewName))))
Custom view files and International Characters
I have a checkbox that I want to style by renaming the FieldType.CheckBox.cshtml to correct name. The name in admin is "Använd leveransadressen" it contains Swedish characters. I have tried naming it to:
Anvandleveransadressen.cshtml Användleveransadressen.cshtml Använd leveransadressen.cshtml anvandleveransadressen.cshtml
But none of the above works.
Comment author was deleted
This is the code used to fetch the field view
viewName = FolderName(viewName);
Comment author was deleted
Ow and it performs this on the name Regex.Replace(retval, @"\W*", "").ToLower();
So if you do that on your caption and see what it returns that should be the value you need
Hi, this gives me anvndleveransadressen.cshtml
And that does not work either.
is working on a reply...