I have a Sharepoint list form to which i added localization according to the this post.
http://www.infopathdev.com/blogs/matt/archive/2006/02/02/Add-Language-Localization-to-a-Form.aspx
Now i need that localization to be equal to current language at form load.
Till now i don't know how to do it, since i don't have codebehind to intercept form load event.
I think it is impossible to do it by infopath rules too.
Ultimately i'm trying to add javascript code to set dropdownlist selected option by i can't find a way to do it too.
What i'm looking for is something that allows me to get language code or id.
xdXDocument:GetDOM("language")/LocalSettings/Languages/Language/@Code[. = "CODE"]
I know that in javascript i can get current language "_spPageContextInfo.currentLanguage" but how and where i should deploy the script?
(*I'm using InfoPath 2010 and Sharepoint 2010)
Thanks in advance