dynamic form , how to delete old field ?

Hello ,

I have a form loaded with values and I have a part of this form that can change dynamically when I switch a combo .
I use define/reconstruct/refresh for rebuild the part of form and after when I use form.getValues() , I have the old field present yet.

I don't want to give in my ajax request the old field.

for example if I had 3 fields when I load : _dyn_field_1 : "1", _dyn_field_2 : "2",
,_dyn_field_3 : "3", when I reconstruct the form to pass to one field , I just wan't to see _new_dyn_field_1 : "4" , in console.log(form.getValues()).

How to do that ?

Thanks

Comments

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!