How can I add range selector in user interface?

Certified Senior Developer

I want to add a range selector kind thing where user can select lower range and upper range, and all items within that range will show up. How can I do that?

(I have attached a screenshot regarding the requirement)

  Discussion posts and replies are publicly visible

Parents
  • Hello ,

    We cant replicate the exact wireframe in Appian but you can try executing below code.

    load(
    local!startmileValue,
    local!endmileValue,
    {
    a!columnsLayout(
    columns: {
    a!columnLayout(
    contents: {
    a!columnsLayout(
    columns: {
    a!columnLayout(
    contents: {
    a!milestoneField(
    label: "Start Range",
    steps: {
    10,
    20,
    30,
    40
    },
    active: local!startmileValue
    )
    }
    ),
    a!columnLayout(
    contents: {
    a!milestoneField(
    label: "End Range",
    steps: {
    10,
    20,
    30,
    40
    },
    active: local!endmileValue
    )
    }
    )
    }
    )
    },
    width: "MEDIUM"
    )
    }
    ),
    a!columnsLayout(
    columns: {
    a!columnLayout(
    contents: {
    a!columnsLayout(
    columns: {
    a!columnLayout(
    a!dropdownField(
    label: "",
    labelPosition: "ABOVE",
    placeholderLabel: "start range",
    choiceLabels: {
    "10",
    "20",
    "30",
    "40"
    },
    choiceValues: {
    1,
    2,
    3,
    4
    },
    saveInto: {
    a!save(
    local!startmileValue,
    save!value
    )
    },
    validations: {}
    )
    ),
    a!columnLayout(
    contents: a!textField(
    value: "to",
    readOnly: true,
    align: "CENTER"
    )
    ),
    a!columnLayout(
    a!dropdownField(
    label: "",
    labelPosition: "ABOVE",
    placeholderLabel: "end range",
    choiceLabels: {
    "10",
    "20",
    "30",
    "40"
    },
    choiceValues: {
    1,
    2,
    3,
    4
    },
    saveInto: {
    a!save(
    local!endmileValue,
    save!value
    )
    },
    validations: {}
    )
    )
    }
    )
    },
    width: "MEDIUM"
    )
    },
    alignVertical: "MIDDLE"
    )
    }
    )

    Do tell if it helps.
  • 0
    Certified Senior Developer
    in reply to Singh002
    Thanks . It is working for selecting dropdowns. But is there any way we can drag the range in a bar or something?
Reply Children