Pass field value without form update


i am got some trouble with AJAX in Drupal 8 Form API.I use few fields with #states so that the value of one field depends on another.And in the end of form i need to pass field value to another field.And when i send a value using AJAX the whole form will reload and all field’s is cleared.Can someone give some advice on how to handle this?