More in this section
Forums / Developing with Sitefinity / Query form description of form using current culture

Query form description of form using current culture

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
1 posts, 0 answered
  1. Anju
    Anju avatar
    19 posts
    22 Jul 2014
    28 Sep 2016
    Link to this post


    I have created a mvc form in two languages in Sitefinity backend (Sitefinity 9.1). Now i need to create a mvc custom widget in visual studio. I want to display the form description based on the current culture in the front end. 

     var currentCulture = Thread.CurrentThread.CurrentUICulture.Name;
     var formManager = FormsManager.GetManager();
     return formManager.GetForms().Where(f => f.Name == FormName &&  f.AvailableCultures.Contains(new CultureInfo(currentCulture))).SingleOrDefault();

    But its throwing error saying parameter not found.

    Please help.




1 posts, 0 answered