0

list of values

I have a document with a text box in which the values chosen from a multi-choice menu are displayed. The problem is that they are displayed next to each other: I would like the list view (one below the other). it's possible?

7 replies

null
    • Sean
    • 5 yrs ago
    • Reported - view

    When you say "document", do you mean Form or Print Layout? I went with Form and used this code in the Table's "Trigger after update"...

     

    let myMC := chosen('Multiple choice');
    let myMCCount := count(myMC);
    let myText := "";
    for i in range(0, myMCCount) do
    myText := myText + item(myMC, i) + "
    "
    end;
    Text := myText

     

    The Text field will display the Multiple Choice selections in a list view in both the Form and Print Layout.

    • Andrea.1
    • 5 yrs ago
    • Reported - view

    Wow it works!! Thanks a lot!

    • Sean
    • 5 yrs ago
    • Reported - view

    😎

    • Tacho
    • 5 yrs ago
    • Reported - view

    Hey Sean,

    thant's nice!

    Would you have a solution for
    a) sorting the choices by alphanumerical order
    b) dash before each choice

    • Sean
    • 5 yrs ago
    • Reported - view

    Hi Tacho, here you go 🙂

     

    let myMC := sort(chosen('Multiple choice'));
    let myMCCount := count(myMC);
    let myText := "";
    for i in range(0, myMCCount) do
    myText := myText + "- " + item(myMC, i) + "
    "
    end;
    Text := myText

    • Tacho
    • 5 yrs ago
    • Reported - view

    Oh my lord, couldn't have been simplier than that, thanks!

    • Sean
    • 5 yrs ago
    • Reported - view

    😆 You bet!

Content aside

  • 5 yrs agoLast active
  • 7Replies
  • 1772Views