Hi there,
I have been trying with no joy to get a hidden field type with a standard value to save with a group sub-field clone like this:
[
'id' => 'field_id',
'type' => 'hidden',
'clone_default' => true, // Always clone with the 'std' value
'std' => 'testing', // Hidden standard value
],
I can see the hidden field in the DOM with the std value as above like this:
<div class="rwmb-input" data-clone-empty-start="0"><input type="hidden" id="group_fields_field_id" class="rwmb-hidden" name="group_fields[1][field_id]" data-default="testing" data-clone-default="true"></div>
But the data-default="testing"
IE: The "std"
value never gets saved in the serialized data for my MB Group Field clones?
I am assuming this is a bug? Or am I missing something?
I look forward to your response!