How do I change the value of a Hidden element?
Based on @mradcliffe suggestion, I've implemented hook_form_FORM_ID_alter() and I do:

$form['elements']['hidden_element_name']['#value'] = 'New value of the hidden element';


It works for me! I hope it helps someone!