Hi Shiri,
There is no option within Designer to do this but you could use a macro. Once created you would select your drop-down list and then select Tool ... Macros ... Delete all list items.
So, you will need to create a sub-folder under the installation directory of Designer, so for Designer ES 3 something like;
C:\Program Files (x86)\Adobe\Adobe LiveCycle Designer ES3\macros\br001
The br001 is optional just in case you have other macros you want to keep separate.
Then create a macro.xml which just maps the label shown in the tools menu with the actual JavaScript code file, so
<?xml version="1.0" encoding="UTF-8"?>
<designerMacros>
<macro>
<label>Delete all list items</label>
<script>DeleteAllListItems.js</script>
</macro>
</designerMacros>
Then in the same directory the DeleteAllListItems.js file
var complete = false;
var selection = designer.getSelection();
if (selection.length === 1) {
var object = selection.item(0);
if (object.className === "field" && object.ui.oneOfChild.className === "choiceList") {
object.nodes.remove(object.items);
complete = true;
}
}
if (!complete) {
designer.alert("Invalid selection. Select a Drop-down List object");
}
Regards
Bruce