I have a drop down that populates its values starting from the current month using Javascript:
var date = new Date();
var currentMonth = date.getMonth();
var futureMonths = ['January','February','March','April','May','June','July','August','September','October','November','December'];
var i = 0;
var optionString = "";
var mStartIndex = currentMonth;
var mEndIndex=12;
for (i = mStartIndex;i <mEndIndex; i++)
{
optionString = optionString + "<option value=\""+ i + "\">" + futureMonths[i] + "</option>\n";
}
$("#Field21").html(optionString);
The choice that the user selects from this drop down don't get saved when the form is saved to the repository.
Any help would be appreciated.
Thanks!