B
bandwagon
Hi - just a quick question about using drop-down form fields in a
protect form Word document.
I need to be able to allow users to select from a list of items which
may be very long (up to 100 chars).
But a drop-down will not allow you to enter text items in it that long
(in the properties dialog). So I have written code to populate the
drop-down, which works well.
But when you then select a long item, it scrolls off the edge of the
page. It will not word-wrap to the next line - and looks terrible when
you print or print preview.
I cannot find any way to make a drop-down behave better with long text
items.
I have done a work around where when you exit the drop-down it
replaces the drop-down field with a textinput field and then inserts
the full text that I need. This then looks good - and word wraps, but
the user obviously cannot change their minds and then select another
item.
Also - it is getting very messy turning protection on and off -
because any form field which was filled in then clears when you turn
protection back on again!!! (am I doing something wrong here)
Any ideas about making drop-downs behave better?
Or how to stop form fields clearing when I turn protection back on
again? I suspect I may have to write more code to loop through them
all - save their values to an array - then when I protect again, loop
through, populating them back again! Aaargghh.
Thanks for your time
Paul Smith
protect form Word document.
I need to be able to allow users to select from a list of items which
may be very long (up to 100 chars).
But a drop-down will not allow you to enter text items in it that long
(in the properties dialog). So I have written code to populate the
drop-down, which works well.
But when you then select a long item, it scrolls off the edge of the
page. It will not word-wrap to the next line - and looks terrible when
you print or print preview.
I cannot find any way to make a drop-down behave better with long text
items.
I have done a work around where when you exit the drop-down it
replaces the drop-down field with a textinput field and then inserts
the full text that I need. This then looks good - and word wraps, but
the user obviously cannot change their minds and then select another
item.
Also - it is getting very messy turning protection on and off -
because any form field which was filled in then clears when you turn
protection back on again!!! (am I doing something wrong here)
Any ideas about making drop-downs behave better?
Or how to stop form fields clearing when I turn protection back on
again? I suspect I may have to write more code to loop through them
all - save their values to an array - then when I protect again, loop
through, populating them back again! Aaargghh.
Thanks for your time
Paul Smith