Select Language Localization according to current language. - InfoPath Dev
in

InfoPath Dev

Select Language Localization according to current language.

Last post 12-15-2011 03:12 AM by DCampos. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 12-15-2011 03:12 AM

    • DCampos
    • Not Ranked
      Male
    • Joined on 12-15-2011
    • Portugal
    • Posts 1

    Select Language Localization according to current language.

    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

Page 1 of 1 (1 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.