Hello,
Does anyone know the command to append to a listbox? I have check boxes in a form and if they are checked, I want a listbox to be updated. I am using the "match" function and it works if only 1 item is checked. If I check multiple items, it will not update the listbox at all.
Thank you!
How are you using the match function ? Can you post your code here, then we have something to work with.
So, if you have these on your form
AListbox
chk1
chk2
chk3
try this MEL code
{if (DOCUMENT.chk1 + DOCUMENT.chk2 + DOCUMENT.chk3)<>"" then
local thisList = DOCUMENT.chk1 + (if DOCUMENT.chk1<>"" AND DOCUMENT.chk2<>"",",","") + DOCUMENT.chk2
thisList = thisList + (if thisList<>"" AND DOCUMENT.chk3<>"",",","") + DOCUMENT.chk3
// and repeat above line with each new checkbox you want to auto-add to AListbox
//Finally
DOCUMENT.AListbox = thisList
else
DOCUMENT.AListbox = ""
endif
}
Should do what you want.
Let us know here if you still need help...post your code in that case 🙂
- Beverly
Thank you Beverly! That worked perfectly.