How to dynamically set the Article language based on the user language?SummaryWhen a user creates a new article, despite of the preferred language set for the user record, the article language field will be set using the default value from the 'language' dictionary field.In some cases it may be required that the language field should be dynamically set based on the user language. InstructionsYou can dynamically set the article language based on the user preferred language by setting a dynamic default value into the language field dictionary. This can be done by following the steps below:Create a 'Dynamic Filter Option' record to get the 'preferred_language' for the current user. Go to 'System Definition > Dynamic Filter Options' and create a new record.Add a label such 'User Preferred Language'.If you want to use the language selected at the user profile (sys_user_preference), simply set the 'Script' field with 'user.language'.If you want to use the 'Preferred Language' set in the user record (sys_user), then set the 'Script' field to query the user preferred language i.e.: gs.getUser().getRecord().getValue('preferred_language');Set the field type to 'String'.Save it. Update the dictionary to use the above 'Dynamic Filter Option'. Open the 'language' sys_dictionary record related to the 'kb_knowledge' table.Find the 'Default Value' tab and check the 'Use dynamic default' option.In the 'Use dynamic default' select the 'Dynamic Filter Option' record you just created.Save it. Now next time a user creates a new article, the article language will be set based on the user preferred language.If the user has no preferred language set, then the language will be set to empty in the article.Another option is to create a client script that will automatically set the knowledge language based on the user language.You can use the 'g_lang' variable to get the user language i.e.: g_form.setValue('language',g_lang);In that case, for the client script to work you may need to add the 'Language' field into the knowledge form.