Actually, you can populate a drop-down list via code without using a dreaded preserve code block.
Say, for example you want a list of sections in your form that will be populated programatically. You can achieve this by doing the following:
1) Create an XML (sections.xml) file that contains two identical, empty nodes within the root node. ...