I have two side by side listboxes and I would like to be able to select options from either and have it populate a multi-line edit field. When I select items from the right listbox it over rights any items that I have previously selected in the left listbox.
Can this be accomplished with two listboxes or do I need to somehow have a single list box that spans two columns.
Look at the properties of your Multi-Line field. There is a series of radio buttons in the properties that allow you to: Never Overwrite, Overwrite or Append to the field. You probably want to Append.
Also, you probably want to concatenate the results of the listboxes into the multi-line field:
DOCUMENT.MULTILINE = DOCUMENT.LISTBOX1 + DOCUMENT.LISTBOX2
Let me know if this doesn't answer your dilemma
Try this MEL code to the right of your form, in the MEL coding area:
Example: 3 objects on your form 2 listboxes: document.L1, document.L2 and 1 multilineEdit field: document.thisOne {!DOCUMENT.thisOne = DOCUMENT.L1 + (if DOCUMENT.L1<>"" and DOCUMENT.L2<>"",", ","") + DOCUMENT.L2 } NOTE: (if DOCUMENT.L1<>"" and DOCUMENT.L2<>"", (this part ->) ", " (<-) , "") The middle line (shown above) is used to put a comma between the L1 and L2 values when putting into DOCUMENT.thisOne (only when both L1 and L2 have values clicked). Or you could put HRET (new line) or "." (period) between L1 and L2 values, etc.
- Beverly
I have a couple boxes needing commas between them. What about if I don't want the comma between the two showing up in between two answers in the same box?
Sorry to steal the thread.