Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have One form, in which there is 1 Dropdown list that contains List of Months From January to December of current year 2013.

Now if I select any particular Month then, all the Dates(Only for Sundays) should be added in another DropDown List. (Event should be done on Change of month, if another month I select, sundays/dates should be added respective to the month).

share|improve this question
add comment

1 Answer

Here is one way to do it. I have used this method in several forms and it sure has served me well.

  1. Create an xml file like the one shown below: (Please follow the same format to complete the rest of the months and their dates as well) Please add an opening angular bracket (<) at the beginning of every line and replace the * with them as well. I couldnt include it due to to formatting issues.

    MonthToDateFilter>

    MonthToDate Month="January">1/6/2013 */MonthToDate>

    MonthToDate Month="January">1/13/2013 */MonthToDate>

    MonthToDate Month="January">1/20/2013 */MonthToDate>

    MonthToDate Month="January">1/27/2013 */MonthToDate>

    MonthToDate Month="February">2/3/2013 */MonthToDate>

    MonthToDate Month="February">10/3/2013 */MonthToDate>

    MonthToDate Month="February">17/3/2013 */MonthToDate>

    MonthToDate Month="February">24/3/2013 */MonthToDate>

    MonthToDate Month="March">.... */MonthToDate> ......

    MonthToDate Month="April">..... */MonthToDate> ......

    /MonthToDateFilter>

    Ill save myself a ton of time and let you follow this article: http://www.codeproject.com/Articles/15945/How-to-create-dynamically-populated-dropdown-in-an Its got all the necessary steps from start to finish. You probably want to name your fields Month and Dates or anything really that you find appropriate.

Good luck!

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.