Skip to main content
February 27, 2023
Question

how can i select 5 dates in one calender view

  • February 27, 2023
  • 5 replies
  • 0 views

i want to select 5 dates in One Date Calender field. is there any Method or field are there ?

5 replies

stefanhelzle0001
Brainy
February 27, 2023

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.

adityag9712
February 27, 2023

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: {}
      )
    )
  )
)

February 28, 2023

Thanks for the code [mention:d602801622814df0b8116f5a4474a806:e9ed411860ed4f2ba0265705b8793d05] but i want to add 5 dates in one date field .

abhayd3663
February 27, 2023

Appian does not support multiple date selection in a single Date Calendar Component.