diff --git a/source/org/jivesoftware/smackx/FormField.java b/source/org/jivesoftware/smackx/FormField.java index a45bf7336..9cb401443 100644 --- a/source/org/jivesoftware/smackx/FormField.java +++ b/source/org/jivesoftware/smackx/FormField.java @@ -263,6 +263,16 @@ public class FormField { } } + /** + * Removes all the values of the field. + * + */ + protected void resetValues() { + synchronized (values) { + values.removeAll(new ArrayList(values)); + } + } + /** * Adss an available options to the question that the user has in order to answer * the question.