Open
Description
If you change line #17 inside of Sample_33_FormField.php to read:
$textrun->addFormField('dropdown')->setEntries(array('', 'Choice 1', 'Choice 2', 'Choice 3'));
... and then parse the file using PHPWord, Word will complain that the resultant file is corrupted.
It would be nice to be able to have a blank option as the default, so that I can present the user with a list of dropdown choices, but not give him/her the impression that something has been pre-selected. My workaround right now is to create an option entry with a value of " ----- " as the first entry in the option list, so that it's apparent that the user still needs to make a selection.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.