Add Unique ID in Hidden Field when Using Formidable

If you want to add a unique ID to a hidden field when using Formidable, you can use this snippet:

add_filter('frm_get_default_value', 'my_custom_default_value', 10, 2);

function my_custom_default_value($value, $field){
	if($field->id == 141){ 	
		$value = uniqid();
	}
	return $value; 
}