i want to select 5 dates in One Date Calender field. is there any Method or field are there ?
Discussion posts and replies are publicly visible
No. You will need to have 5 fields. If the user should pick one date after the other, you could do that in a wizard style dynamic interface.
a!localVariables( local!date, local!dates, if( a!isNullOrEmpty(local!dates), a!dateField( label: "Date", labelPosition: "ABOVE", value: local!date, saveInto: { local!date, a!save( local!dates, a!forEach(enumerate(5) + 1, local!date + fv!item) ) }, validations: {} ), a!forEach( items: local!dates, expression: a!dateField( label: "Date", labelPosition: "ABOVE", value: fv!item, saveInto: fv!item, validations: {} ) ) ) )
Thanks for the code but i want to add 5 dates in one date field .
If you have a specific date range, you could use a drop down list.
a!localVariables( local!dates: a!forEach( items: enumerate(60) - 30, expression: today() + fv!item ), local!selection: {}, local!count: length(local!selection), a!multipleDropdownField( label: "Dates (" & local!count & ")", instructions: "Select 5 dates", choiceLabels: a!forEach( items: local!dates, expression: text(fv!item, "dd mmm yyyy") ), choiceValues: local!dates, value: local!selection, saveInto: local!selection, validations: { if(local!count = 5, null, "Select 5 dates") } ) )