PDA

View Full Version : datefield is dirty after form submit



Speedy
3 Nov 2011, 5:46 AM
Hello,

I use a form with a lot of different fields, some of them are datefields.
These fields are submitted by using an ajax request. In the ajax requests callback I reset the form by



form.setValues( form.getValues());


where form is the main FormPanels basic form.

This works like a charm as long I dont clear any of the datefields.
If the datefield values are existent and changed the fields aren't dirty after the submit. But if I remove a value by clearing the textfield part the empty/null value is sent to the server but the field stays dirty.

Anybody knows how to solve this?


Thx

Speedy
3 Nov 2011, 6:02 AM
problem solved with update to 4.0.7