Expand my Community achievements bar.

How to set default values in ListBox

Avatar

Former Community Member
Hello Experts,



I have a requirement where I have a listbox with 10-15 values prepopulated and I have to show 3-4 option selected by default.



Please note that these 3-4 options to be shown as selected, will be fetched from database.



How do I achieve this?



Please guide.



Thank you

Ashutosh
6 Replies

Avatar

Former Community Member
Hi,



I found something like



ListBox1.setItemState(1, true);



I am searching way to use it in my context.



Ashutosh

Avatar

Former Community Member
Hi,



I would like to ask for help. I have a text box on the form that is getting populated dynamically. But if I have more than 13 records text is over floating the text box and goes into another part of the form. How can I stop this from happening and make an extra records to be printed on next page.



Thank you.



Ilya.

Avatar

Former Community Member
Make sure the root subform is flowed and have the allow page breaks set on.

Avatar

Former Community Member
Paul,



Thank you for advise. I made changes you suggested, but still wasn't able to achieve the desire result. I have a text box on the fist page of the form where I should limit the number of records to 13. If the number of records is > 13, I should show them on the similar text box on the page 2.

How can I achieve that?



Thank you,



Ilya.

Avatar

Former Community Member
Paul,



Thanks a lot. I found what was the problem by not be able to see the overflow text going to the next page. It does now.

Thanks again.



Ilya.