Title: Hidden Field Issue
Last modified: April 25, 2018

---

# Hidden Field Issue

 *  [thisismee](https://wordpress.org/support/users/thisismee/)
 * (@thisismee)
 * [8 years ago](https://wordpress.org/support/topic/hidden-field-issue/)
 * Before upgrading to 2.0, I had a hidden field in registration.
    Now it does not
   work, I just paste that code:
 * [https://docs.ultimatemember.com/article/128-add-a-hidden-field-to-your-register-form](https://docs.ultimatemember.com/article/128-add-a-hidden-field-to-your-register-form)
 * I paste it to the Google Re-captcha extension:
    Includes -> Core -> Actions -
   > um-recaptcha-form.php   Previously it worked, now I see in the source of the
   page a hidden field, but the record is not added to the database as before 🙁
 * Do I do something wrong? Should I paste this code elsewhere?
    Or maybe there 
   is a new code? I am asking for help, please.
 * I also try this code, I found it in other file, but still doesn’t work:
 *     ```
       	add_action('um_after_register_fields', 'add_a_hidden_field_to_register', 500);
   
       	function add_a_hidden_field_to_register( $args ) {
       		session_start();
       		if (isset($_GET["ref"])) {
       			$REF = $_GET["ref"]; 
       			$_SESSION['Referer'] = $REF;
       		} else {
       			if (isset($_SESSION['Referer'])) {
       				$REF = $_SESSION['Referer'];	
       			} else {
       				$REF = '';	
       			};
       		}; 
       		 echo '<input type="hidden" id="ref" value="'.$REF.'" />';	
       	};
       ```
   
 * I can pay for solving the problem.
    Greetings.

The topic ‘Hidden Field Issue’ is closed to new replies.

 * ![](https://ps.w.org/ultimate-member/assets/icon-256x256.png?rev=3160947)
 * [Ultimate Member – User Profile, Registration, Login, Member Directory, Content Restriction & Membership Plugin](https://wordpress.org/plugins/ultimate-member/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-member/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-member/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-member/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-member/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-member/reviews/)

## Tags

 * [referral](https://wordpress.org/support/topic-tag/referral/)
 * [register](https://wordpress.org/support/topic-tag/register/)
 * [Registration](https://wordpress.org/support/topic-tag/registration/)

 * 0 replies
 * 1 participant
 * Last reply from: [thisismee](https://wordpress.org/support/users/thisismee/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/hidden-field-issue/)
 * Status: not resolved