Skip to main content
kavyam0002
July 20, 2022
Solved

Multidropdown

  • July 20, 2022
  • 11 replies
  • 0 views

Hi 

i have written code like this but it is showing the data like option1, option 2

but i want to show data like

•option1

•option 2

how can write code for it 

    Best answer by kavyam0002

    this is how it looks like with below code

    11 replies

    stefanhelzle0001
    Brainy
    July 20, 2022

    Except of the double "value" this seems good for me. The multiple dropdown will show all selected options like this.

    Did you think about using a checkbox field?

    kavyam0002
    July 20, 2022

    no,

    i want to show data like this after selecting multiple values

    harshitb6843
    July 20, 2022

    Value is stacked when you are trying to select a value from the component but when it is selected, it will be shown continuously only, without getting stacked. 

    That is how the component behaves. 

    July 20, 2022

    Hello Kavya, if you see the code written in "choicelabel" is the same as the output so try to change the code into choicelabel: { "Option 1","/n", "Option 2"} I also faced this issue in ici education when writing a program. Change the code this "/n" may satisfy your code if not then try to put "/n" in the "choicevalue" section, thank you.

    mikes0011
    Brainy
    July 20, 2022
    choicelabel: { "Option 1","/n", "Option 2"}

    This would just display the literal text "/n" as a choice option.  The multiple dropdown field doesn't care about anything in its display value other than plaintext.  There's no way to force it to do what Kavya is requesting, inherently.

    The Expression Guru
    July 20, 2022

    But what if we put "/n" without inverted commas or put it in the choicevalue section?

    November 27, 2023

    The ethical hacker academy provides a crucial platform for aspiring cybersecurity professionals to hone their skills responsibly. With a focus on ethical hacking, the academy fosters a culture of knowledge-sharing and cybersecurity awareness. The comprehensive courses empower individuals to combat cyber threats ethically, contributing to a safer digital landscape. Highly recommended for those seeking a hands-on, ethical approach to cybersecurity education.