Form Rebuild by Ajax Call
Get the value from:

$_temp_var_ = $form_state-&gt;getUserInput('_field_name_');

Use getUserInput() instead of getValue().

And then set the value to:

$form['_field_name_'] = $_temp_var_;