I have created a new module based on the poll module. It uses ahah to add new choices just like in the poll module.
I am not sure how to describe this so I am going to use a walkthrough in the poll module to explain what I am seeing. This is in Drupal 6.x
1) Create Content --> poll
2) In the textfield "Question" enter Q1.
3) In the first choice box enter O1, and O2 in the next box
4) Click "add another choice". Just enter -1 in the vote count.
5) Click "Add another choice". The Poll module's validate function will run and detect that you have entered a negative value.
BUT after this it resets the form and removes what I had entered before (i.e O1 & O2)
Is there anyway to keep this from happening? How can i keep the form from being reset and losing all the values i had entered?