[ad_1]
HI Guys,
I have created custom fields in ACF. Created a registration form in Ultimate member. Custom fields exisitng in the form are getting saved and updated in user profile. But When I am trying to add hidden custom fields they are not getting updated and do not have any errors. I used the below documentation. Have I missed something or is it not possible?
https://docs.ultimatemember.com/article/128-add-a-hidden-field-to-your-register-form
Thank you.
add_action('um_after_register_fields', 'add_a_hidden_field_to_register');
function add_a_hidden_field_to_register( $args ) {
$currentDateTime = new DateTime('now');
$registration_date=date_format($currentDateTime,'Y-m-d H:i:s');
echo '<input type="hidden" name="registration_date" id="registration_date" value="'.$registration_date.'" />';
echo '<input type="hidden" name="primary_account_id" id="kid1_name" value="NAGESH" />';
//echo date_format($currentDateTime,'Y-m-d H:i:s');
}- This topic was modified 2 hours, 25 minutes ago by .
- This topic was modified 2 hours, 24 minutes ago by .
