Hi,

I have a form in which I have one filed which is using the validator.
Basically what i want to do is for user to add data. Once he press submit I
want to send an alerty that it was successful and the I want to clear all the
fields basically initialize the form. My problem is once the alert is over and
all the fields are clear the field which is compulsory get a red box in there.
is ther someway i can avoid it. I am attaching th code here.

Thanks.

private function submit()
{
var temp = Validator.isValid(this, 'myFormModel.ffName' );
if ( temp)
{
var submitdata = new Object;

submitdata.all the fileds projectRO.add(submitdata);
alert('Added Successfully');

ffName.text = ""
ffPriority.selectedIndex = 0;
ffScore.value = 0;
ffManager.text = ""
ffStatus.selectedIndex = 0;
ffOverview.text = ""
ffRdays.value = 0;
ffStart1.text = ""
ffEnd1.text = ""
ffStart2.text = ""
ffEnd2.text = ""


}
}