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
-
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.
-
Wow it works!! Thanks a lot!
-
-
Hey Sean,
thant's nice!
Would you have a solution for
a) sorting the choices by alphanumerical order
b) dash before each choice -
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
-
Oh my lord, couldn't have been simplier than that, thanks!
-
You bet!
Content aside
- 5 yrs agoLast active
- 7Replies
- 1772Views