Skip to main content
kavyam0002
Brainy
Jul 20, 2022 4:59 AM UTC
Solved

Multidropdown

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 

    kavyam0002
    Brainy
    Jul 20, 2022 12:26 PM UTC

    this is how it looks like with below code

    11 replies

    stefanhelzle0001
    Brainy
    Jul 20, 2022 6:11 AM UTC

    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
    Brainy
    Jul 20, 2022 6:14 AM UTC

    no,

    i want to show data like this after selecting multiple values

    harshitb6843
    Brainy
    Jul 20, 2022 6:16 AM UTC

    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. 

    New Participant
    Jul 20, 2022 3:07 PM UTC

    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
    Jul 20, 2022 4:25 PM UTC
    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
    New Participant
    Jul 20, 2022 6:40 PM UTC

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

    New Participant
    Nov 27, 2023 5:33 AM UTC

    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.