Title: hydevelop1994's Replies | WordPress.org

---

# hydevelop1994

  [  ](https://wordpress.org/support/users/hydevelop1994/)

 *   [Profile](https://wordpress.org/support/users/hydevelop1994/)
 *   [Topics Started](https://wordpress.org/support/users/hydevelop1994/topics/)
 *   [Replies Created](https://wordpress.org/support/users/hydevelop1994/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/hydevelop1994/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/hydevelop1994/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/hydevelop1994/engagements/)
 *   [Favorites](https://wordpress.org/support/users/hydevelop1994/favorites/)

 Search replies:

## Forum Replies Created

Viewing 14 replies - 1 through 14 (of 14 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Forminator Forms – Contact Form, Payment Form & Custom Form Builder] Custom code made the file upload image url dissapear](https://wordpress.org/support/topic/custom-code-made-the-file-upload-image-url-dissapear/)
 *  Thread Starter [hydevelop1994](https://wordpress.org/support/users/hydevelop1994/)
 * (@hydevelop1994)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/custom-code-made-the-file-upload-image-url-dissapear/#post-17378323)
 * [@wpmudev-support](https://wordpress.org/support/users/wpmudev-support8/)9
   [@wpmudev-support](https://wordpress.org/support/users/wpmudev-support8/)
   10[@wpmudev-support](https://wordpress.org/support/users/wpmudev-support8/)11
   [@wpmudev-support](https://wordpress.org/support/users/wpmudev-support8/)12[@wpmudev-support](https://wordpress.org/support/users/wpmudev-support8/)
   13
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Forminator Forms – Contact Form, Payment Form & Custom Form Builder] Custom code made the file upload image url dissapear](https://wordpress.org/support/topic/custom-code-made-the-file-upload-image-url-dissapear/)
 *  Thread Starter [hydevelop1994](https://wordpress.org/support/users/hydevelop1994/)
 * (@hydevelop1994)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/custom-code-made-the-file-upload-image-url-dissapear/#post-17378322)
 * [@wpmudev-support1](https://wordpress.org/support/users/wpmudev-support1/)
   [@wpmudev-support2](https://wordpress.org/support/users/wpmudev-support2/)
   [@wpmudev-support3](https://wordpress.org/support/users/wpmudev-support3/)[@wpmudev-support4](https://wordpress.org/support/users/wpmudev-support4/)
 * [@wpmudev-support5](https://wordpress.org/support/users/wpmudev-support5/)
   [@wpmudev-support6](https://wordpress.org/support/users/wpmudev-support6/)
 * [@wpmudev-support7](https://wordpress.org/support/users/wpmudev-support7/)
 * [@wpmudev-support8](https://wordpress.org/support/users/wpmudev-support8/)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Forminator Forms – Contact Form, Payment Form & Custom Form Builder] Custom code made the file upload image url dissapear](https://wordpress.org/support/topic/custom-code-made-the-file-upload-image-url-dissapear/)
 *  Thread Starter [hydevelop1994](https://wordpress.org/support/users/hydevelop1994/)
 * (@hydevelop1994)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/custom-code-made-the-file-upload-image-url-dissapear/#post-17376356)
 * [@wpmudev-support2](https://wordpress.org/support/users/wpmudev-support2/) here
   you go
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Forminator Forms – Contact Form, Payment Form & Custom Form Builder] Custom code made the file upload image url dissapear](https://wordpress.org/support/topic/custom-code-made-the-file-upload-image-url-dissapear/)
 *  Thread Starter [hydevelop1994](https://wordpress.org/support/users/hydevelop1994/)
 * (@hydevelop1994)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/custom-code-made-the-file-upload-image-url-dissapear/#post-17376354)
 *     ```wp-block-code
       {"type":"form","data":{"fields":[{"id":"upload-1","element_id":"upload-1","form_id":"wrapper-9142-3674","parent_group":"","type":"upload","options":[],"cols":"12","conditions":[],"wrapper_id":"wrapper-9142-3674","field_label":"Upload file","filetypes":["jpg|jpeg|jpe","png","webp","css","htm|html","dfxp","js"],"file-type":"single","file-limit":"unlimited","upload-limit":"5","filesize":"MB","custom-files":"1","use_library":"true","required":"1"},{"id":"hidden-1","element_id":"hidden-1","form_id":"wrapper-8983-4113","parent_group":"","type":"hidden","options":[],"cols":"12","conditions":[],"wrapper_id":"wrapper-8983-4113","field_label":"Bank Account","default_value":"custom_value","custom_value":"bank_account_number"},{"id":"select-1","element_id":"select-1","form_id":"wrapper-6464-1544","parent_group":"","type":"select","options":[{"label":"918 Kiss","value":"918-Kiss","limit":"","key":"4853-4447","error":"","default":""},{"label":"Mega 888","value":"Mega-888","limit":"","key":"6606-4189","error":"","default":""},{"label":"pussy 888","value":"pussy-888","limit":"","default":"","key":"3715-9789","error":""}],"cols":"12","conditions":[],"wrapper_id":"wrapper-6464-1544","hidden_behavior":"zero","value_type":"single","field_label":"Select","options_bulk_editor":"918 Kiss;918-Kiss; 0\nMega 888;Mega-888; 0\npussy 888;pussy-888; 0","options_expanded":"1"}],"settings":{"pagination-header":"nav","paginationData":{"pagination-header-design":"show","pagination-header":"nav"},"formName":"Deposit","version":"1.28.1","form-border-style":"none","form-padding":"","form-border":"","fields-style":"open","field-image-size":"custom","validation":"on_submit","akismet-protection":"0","form-style":"default","enable-ajax":"false","autoclose":"true","submission-indicator":"show","indicator-label":"Submitting...","form-type":"default","submission-behaviour":"behaviour-thankyou","thankyou-message":"Thank you for contacting us, we will be in touch shortly.","submitData":{"custom-submit-text":"Send Message","custom-invalid-form-message":"Error: Your form is not valid, please fix the errors!"},"validation-inline":"1","form-expire":"no_expire","form-padding-top":"0","form-padding-right":"0","form-padding-bottom":"0","form-padding-left":"0","form-border-width":"0","form-border-radius":"0","cform-label-font-family":"Roboto","cform-label-custom-family":"","cform-label-font-size":"12","cform-label-font-weight":"bold","cform-title-font-family":"Roboto","cform-title-custom-family":"","cform-title-font-size":"45","cform-title-font-weight":"normal","cform-title-text-align":"left","cform-subtitle-font-family":"Roboto","cform-subtitle-custom-font":"","cform-subtitle-font-size":"18","cform-subtitle-font-weight":"normal","cform-subtitle-text-align":"left","cform-input-font-family":"Roboto","cform-input-custom-font":"","cform-input-font-size":"16","cform-input-font-weight":"normal","cform-radio-font-family":"Roboto","cform-radio-custom-font":"","cform-radio-font-size":"14","cform-radio-font-weight":"normal","cform-select-font-family":"Roboto","cform-select-custom-family":"","cform-select-font-size":"16","cform-select-font-weight":"normal","cform-multiselect-font-family":"Roboto","cform-multiselect-custom-font":"","cform-multiselect-font-size":"16","cform-multiselect-font-weight":"normal","cform-dropdown-font-family":"Roboto","cform-dropdown-custom-font":"","cform-dropdown-font-size":"16","cform-dropdown-font-weight":"normal","cform-calendar-font-family":"Roboto","cform-calendar-custom-font":"","cform-calendar-font-size":"13","cform-calendar-font-weight":"normal","cform-button-font-family":"Roboto","cform-button-custom-font":"","cform-button-font-size":"14","cform-button-font-weight":"500","cform-timeline-font-family":"Roboto","cform-timeline-custom-font":"","cform-timeline-font-size":"12","cform-timeline-font-weight":"normal","cform-pagination-font-family":"","cform-pagination-custom-font":"","cform-pagination-font-size":"16","cform-pagination-font-weight":"normal","payment_require_ssl":"","submission-file":"delete","store_submissions":"1","form_name":"deposit","form_status":"publish","sc_email_link":"1","sc_message":"<p>Your form has been saved as draft and a resume link has been generated so you can return to the form anytime within {retention_period} days from today. Copy and save the link or enter your email address below to have the link sent to your mail.</p><p>These fields weren't saved to your submission draft: Paypal, Stripe, Signature, Password, Captcha, and Upload. Kindly fill them out before submitting the form.</p>","use-autofill":"","notification_count":1,"previous_status":"publish","use_ajax_load":"","use_donotcachepage":"1"},"client_id":null,"integration_conditions":[],"behaviors":[{"slug":"behavior-1234-4567","label":"","autoclose-time":"5","autoclose":"true","newtab":"sametab","thankyou-message":"Thank you for contacting us, we will be in touch shortly.","email-thankyou-message":"","manual-thankyou-message":"","submission-behaviour":"behaviour-thankyou","redirect-url":""}],"notifications":[{"slug":"notification-1234-4567","label":"Admin Email","email-recipients":"default","recipients":"xpokerasiapacific@gmail.com","email-subject":"New Form Entry #{submission_id} for {form_name}","email-editor":"<p>You have a new website form submission: <br>{all_fields}</p>\n<p>{upload-1} <br>---<br>This message was sent from {site_url}.</p>","email-attachment":"true","type":"default","conditions":[]}]},"status":"publish","version":"1.28.1"}
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Forminator Forms – Contact Form, Payment Form & Custom Form Builder] Custom code made the file upload image url dissapear](https://wordpress.org/support/topic/custom-code-made-the-file-upload-image-url-dissapear/)
 *  Thread Starter [hydevelop1994](https://wordpress.org/support/users/hydevelop1994/)
 * (@hydevelop1994)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/custom-code-made-the-file-upload-image-url-dissapear/#post-17376127)
 * hi how come there is no update while other threads have reply?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Forminator Forms – Contact Form, Payment Form & Custom Form Builder] Custom code made the file upload image url dissapear](https://wordpress.org/support/topic/custom-code-made-the-file-upload-image-url-dissapear/)
 *  Thread Starter [hydevelop1994](https://wordpress.org/support/users/hydevelop1994/)
 * (@hydevelop1994)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/custom-code-made-the-file-upload-image-url-dissapear/#post-17372922)
 * oops sorry been paste it
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Forminator Forms – Contact Form, Payment Form & Custom Form Builder] Custom code made the file upload image url dissapear](https://wordpress.org/support/topic/custom-code-made-the-file-upload-image-url-dissapear/)
 *  Thread Starter [hydevelop1994](https://wordpress.org/support/users/hydevelop1994/)
 * (@hydevelop1994)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/custom-code-made-the-file-upload-image-url-dissapear/#post-17372910)
 * {“type”:”form”,”data”:{“fields”:[{“id”:”upload-1″,”element_id”:”upload-1″,”form_id”:”
   wrapper-9142-3674″,”parent_group”:””,”type”:”upload”,”options”:[],”cols”:”12″,”
   conditions”:[],”wrapper_id”:”wrapper-9142-3674″,”field_label”:”Upload file”,”
   filetypes”:[“jpg|jpeg|jpe”,”png”,”webp”,”css”,”htm|html”,”dfxp”,”js”],”file-type”:”
   single”,”file-limit”:”unlimited”,”upload-limit”:”5″,”filesize”:”MB”,”custom-files”:”
   1″,”use_library”:”true”,”required”:”1″},{“id”:”hidden-1″,”element_id”:”hidden-
   1″,”form_id”:”wrapper-8983-4113″,”parent_group”:””,”type”:”hidden”,”options”:[],”
   cols”:”12″,”conditions”:[],”wrapper_id”:”wrapper-8983-4113″,”field_label”:”Bank
   Account”,”default_value”:”custom_value”,”custom_value”:”bank_account_number”},{“
   id”:”select-1″,”element_id”:”select-1″,”form_id”:”wrapper-6464-1544″,”parent_group”:””,”
   type”:”select”,”options”:[{“label”:”918 Kiss”,”value”:”918-Kiss”,”limit”:””,”
   key”:”4853-4447″,”error”:””,”default”:””},{“label”:”Mega 888″,”value”:”Mega-888″,”
   limit”:””,”key”:”6606-4189″,”error”:””,”default”:””},{“label”:”pussy 888″,”value”:”
   pussy-888″,”limit”:””,”default”:””,”key”:”3715-9789″,”error”:””}],”cols”:”12″,”
   conditions”:[],”wrapper_id”:”wrapper-6464-1544″,”hidden_behavior”:”zero”,”value_type”:”
   single”,”field_label”:”Select”,”options_bulk_editor”:”918 Kiss;918-Kiss; 0\nMega
   888;Mega-888; 0\npussy 888;pussy-888; 0″,”options_expanded”:”1″}],”settings”:{“
   pagination-header”:”nav”,”paginationData”:{“pagination-header-design”:”show”,”
   pagination-header”:”nav”},”formName”:”Deposit”,”version”:”1.28.1″,”form-border-
   style”:”none”,”form-padding”:””,”form-border”:””,”fields-style”:”open”,”field-
   image-size”:”custom”,”validation”:”on_submit”,”akismet-protection”:”0″,”form-
   style”:”default”,”enable-ajax”:”false”,”autoclose”:”true”,”submission-indicator”:”
   show”,”indicator-label”:”Submitting…”,”form-type”:”default”,”submission-behaviour”:”
   behaviour-thankyou”,”thankyou-message”:”Thank you for contacting us, we will 
   be in touch shortly.”,”submitData”:{“custom-submit-text”:”Send Message”,”custom-
   invalid-form-message”:”Error: Your form is not valid, please fix the errors!”},”
   validation-inline”:”1″,”form-expire”:”no_expire”,”form-padding-top”:”0″,”form-
   padding-right”:”0″,”form-padding-bottom”:”0″,”form-padding-left”:”0″,”form-border-
   width”:”0″,”form-border-radius”:”0″,”cform-label-font-family”:”Roboto”,”cform-
   label-custom-family”:””,”cform-label-font-size”:”12″,”cform-label-font-weight”:”
   bold”,”cform-title-font-family”:”Roboto”,”cform-title-custom-family”:””,”cform-
   title-font-size”:”45″,”cform-title-font-weight”:”normal”,”cform-title-text-align”:”
   left”,”cform-subtitle-font-family”:”Roboto”,”cform-subtitle-custom-font”:””,”
   cform-subtitle-font-size”:”18″,”cform-subtitle-font-weight”:”normal”,”cform-subtitle-
   text-align”:”left”,”cform-input-font-family”:”Roboto”,”cform-input-custom-font”:””,”
   cform-input-font-size”:”16″,”cform-input-font-weight”:”normal”,”cform-radio-font-
   family”:”Roboto”,”cform-radio-custom-font”:””,”cform-radio-font-size”:”14″,”cform-
   radio-font-weight”:”normal”,”cform-select-font-family”:”Roboto”,”cform-select-
   custom-family”:””,”cform-select-font-size”:”16″,”cform-select-font-weight”:”normal”,”
   cform-multiselect-font-family”:”Roboto”,”cform-multiselect-custom-font”:””,”cform-
   multiselect-font-size”:”16″,”cform-multiselect-font-weight”:”normal”,”cform-dropdown-
   font-family”:”Roboto”,”cform-dropdown-custom-font”:””,”cform-dropdown-font-size”:”
   16″,”cform-dropdown-font-weight”:”normal”,”cform-calendar-font-family”:”Roboto”,”
   cform-calendar-custom-font”:””,”cform-calendar-font-size”:”13″,”cform-calendar-
   font-weight”:”normal”,”cform-button-font-family”:”Roboto”,”cform-button-custom-
   font”:””,”cform-button-font-size”:”14″,”cform-button-font-weight”:”500″,”cform-
   timeline-font-family”:”Roboto”,”cform-timeline-custom-font”:””,”cform-timeline-
   font-size”:”12″,”cform-timeline-font-weight”:”normal”,”cform-pagination-font-
   family”:””,”cform-pagination-custom-font”:””,”cform-pagination-font-size”:”16″,”
   cform-pagination-font-weight”:”normal”,”payment_require_ssl”:””,”submission-file”:”
   delete”,”store_submissions”:”1″,”form_name”:”deposit”,”form_status”:”publish”,”
   sc_email_link”:”1″,”sc_message”:”
   Your form has been saved as draft and a resume
   link has been generated so you can return to the form anytime within {retention_period}
   days from today. Copy and save the link or enter your email address below to 
   have the link sent to your mail.These fields weren’t saved to your submission
   draft: Paypal, Stripe, Signature, Password, Captcha, and Upload. Kindly fill 
   them out before submitting the form.“,”use-autofill”:””,”notification_count”:
   1,”previous_status”:”publish”,”use_ajax_load”:””,”use_donotcachepage”:”1″},”client_id”:
   null,”integration_conditions”:[],”behaviors”:[{“slug”:”behavior-1234-4567″,”label”:””,”
   autoclose-time”:”5″,”autoclose”:”true”,”newtab”:”sametab”,”thankyou-message”:”
   Thank you for contacting us, we will be in touch shortly.”,”email-thankyou-message”:””,”
   manual-thankyou-message”:””,”submission-behaviour”:”behaviour-thankyou”,”redirect-
   url”:””}],”notifications”:[{“slug”:”notification-1234-4567″,”label”:”Admin Email”,”
   email-recipients”:”default”,”recipients”:”xpokerasiapacific@gmail.com”,”email-
   subject”:”New Form Entry #{submission_id} for {form_name}”,”email-editor”:”You
   have a new website form submission:{all_fields}\n{upload-1}—This message was 
   sent from {site_url}.“,”email-attachment”:”true”,”type”:”default”,”conditions”:[]}]},”
   status”:”publish”,”version”:”1.28.1″}
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Forminator Forms – Contact Form, Payment Form & Custom Form Builder] custom user meta in hidden fields?](https://wordpress.org/support/topic/custom-user-meta-in-hidden-fields/)
 *  Thread Starter [hydevelop1994](https://wordpress.org/support/users/hydevelop1994/)
 * (@hydevelop1994)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/custom-user-meta-in-hidden-fields/#post-17371454)
 * [@wpmudev-support8](https://wordpress.org/support/users/wpmudev-support8/) really
   appreciate if u can help me find out what happen to the file url not showing 
   when I use this custom MU plugin for hidden field
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Forminator Forms – Contact Form, Payment Form & Custom Form Builder] custom user meta in hidden fields?](https://wordpress.org/support/topic/custom-user-meta-in-hidden-fields/)
 *  Thread Starter [hydevelop1994](https://wordpress.org/support/users/hydevelop1994/)
 * (@hydevelop1994)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/custom-user-meta-in-hidden-fields/#post-17369865)
 * are u here?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Forminator Forms – Contact Form, Payment Form & Custom Form Builder] custom user meta in hidden fields?](https://wordpress.org/support/topic/custom-user-meta-in-hidden-fields/)
 *  Thread Starter [hydevelop1994](https://wordpress.org/support/users/hydevelop1994/)
 * (@hydevelop1994)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/custom-user-meta-in-hidden-fields/#post-17367024)
 *     ```wp-block-code
       <?php 
   
       add_action('forminator_custom_form_submit_before_set_fields', 'wpmudev_change_hidden_fields_data', 10, 3);
       function wpmudev_change_hidden_fields_data($entry, $module_id, $field_data_array) {
   
       	$form_ids = array(62); //Please change the form ID
   
   
       	if (!in_array($module_id, $form_ids)) {
               return;
           }
   
       	if (!is_user_logged_in()) {
       		return;
       	}
   
       	$user = wp_get_current_user();
       	$user_data = get_userdata($user->ID);
   
       	foreach ($field_data_array as $key => $value) {
   
       		// HERE YOU MODIFY YOUR HIDDEN FIELDS VALUES
   
       		# set user bio 
               if (strpos($value['value'], 'bank_account_number') !== false) {
                   Forminator_CForm_Front_Action::$info['field_data_array'][$key]['value'] = $user_data->bank_account_number;
               }
   
   
   
           }
       }
   
   
       add_filter('forminator_prepared_data', 'wpmudev_update_hidden_field_val_copy', 10, 2);
       function wpmudev_update_hidden_field_val_copy($prepared_data, $module_object)
       {
           $form_ids = array(62); //Please change the form ID
           if (!in_array($module_object->id, $form_ids)) {
               return $prepared_data;
           }
   
           foreach ($prepared_data as $key => $value) {
   
       		// repeat this block as many times as the number of hidden fields that you modified with code
       		// note: here you don't use field values but actual hidden fields IDs
       		// of hidden fields that you modified. 
       		if (strpos($key, 'hidden-1') !== false) {
                   $prepared_data[$key] = sanitize_text_field($_POST[$key]);
               }
   
   
           }
   
           return $prepared_data;
       }
       ```
   
 * This is my code , without this the image url work properly , with this the image
   url wont work
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Forminator Forms – Contact Form, Payment Form & Custom Form Builder] custom user meta in hidden fields?](https://wordpress.org/support/topic/custom-user-meta-in-hidden-fields/)
 *  Thread Starter [hydevelop1994](https://wordpress.org/support/users/hydevelop1994/)
 * (@hydevelop1994)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/custom-user-meta-in-hidden-fields/#post-17366727)
 * hi but the image is not showing at all , even in submission the upload-1 is also
   empty and the weird thing in email notification
 * You have a new website form submission:
   {all_fields}
 * {upload-1}
   —This message was sent from {site_url}.the result turn out upload-
   1 showing my custom-field data (bank_account_number)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Forminator Forms – Contact Form, Payment Form & Custom Form Builder] custom user meta in hidden fields?](https://wordpress.org/support/topic/custom-user-meta-in-hidden-fields/)
 *  Thread Starter [hydevelop1994](https://wordpress.org/support/users/hydevelop1994/)
 * (@hydevelop1994)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/custom-user-meta-in-hidden-fields/#post-17365651)
 * one more question, if I want to fileupload a image in the form, can it send the
   media url in email?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Forminator Forms – Contact Form, Payment Form & Custom Form Builder] custom user meta in hidden fields?](https://wordpress.org/support/topic/custom-user-meta-in-hidden-fields/)
 *  Thread Starter [hydevelop1994](https://wordpress.org/support/users/hydevelop1994/)
 * (@hydevelop1994)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/custom-user-meta-in-hidden-fields/#post-17365582)
 * the email things is a well consider for me , thanks , what a fantastic team!
   
   will have a try now
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Forminator Forms – Contact Form, Payment Form & Custom Form Builder] custom user meta in hidden fields?](https://wordpress.org/support/topic/custom-user-meta-in-hidden-fields/)
 *  Thread Starter [hydevelop1994](https://wordpress.org/support/users/hydevelop1994/)
 * (@hydevelop1994)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/custom-user-meta-in-hidden-fields/#post-17363669)
 * Follow this [link](https://wordpress.org/support/topic/how-to-add-a-hidden-field-with-custom-user-meta/),
   and i try to add the code below in mu-plugins
 *     ```wp-block-code
       <?php
       add_filter('forminator_field_hidden_field_value', function ($value)
       {
   
           if (!is_user_logged_in())
           {
               return $value;
           }
   
           $user = wp_get_current_user();
   
           $user_data = get_userdata($user->ID);
   
           // To show all possible values
           //print_r($user_data);
           if (strpos($value, 'user_bio') !== false)
           {
   
               $value = $user_data->description;
               return $value;
   
           }
           elseif (strpos($value, 'user_website') !== false)
           {
   
               $value = $user_data->user_url;
               return $value;
   
           }elseif (strpos($value, 'bank_account_number') !== false)
           {
   
               $value = $user_data->bank_account_number;
               return $value;
   
           }
   
           return $value;
   
       }
       , 20, 1);
       ```
   
 * But it didnt show the account number eg: 123123
   it show the submission like this,
   how I fix it
 *     ```wp-block-code
       Date Submitted
       Jan 22, 2024 @ 7:14 PM
       Hidden
       bank_account_number
       Name
       Hong2
       ```
   

Viewing 14 replies - 1 through 14 (of 14 total)