Title: Assign value
Last modified: March 29, 2021

---

# Assign value

 *  Resolved [chickoder](https://wordpress.org/support/users/chickoder/)
 * (@chickoder)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/assign-value/)
 * Is it possible to assign a value to a field without user’s input? Also, this 
   field should be hidden to users. I have 3 forms so I need to assign 3 different
   values to this field depending on which form it is.

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

 *  Plugin Author [Roland Barker](https://wordpress.org/support/users/xnau/)
 * (@xnau)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/assign-value/#post-14250584)
 * Yes, the plugin includes a hidden field type that can be set up to get environmental
   values in the background. Take a look at the documentaion:
 * [Hidden Dynamic Fields](https://xnau.com/work/wordpress-plugins/participants-database/using-the-participants-database-plugin/the-signup-form/#hidden)
 *  Thread Starter [chickoder](https://wordpress.org/support/users/chickoder/)
 * (@chickoder)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/assign-value/#post-14251534)
 * Appreciate your help. I tried using this method, but there were no values storing
   on the hidden field that I created. I am not sure if I am doing it correctly.
   I am a starting to learn WordPress so I am please be patient with me.
 * What I did is first, I created a hidden field and name it “hidden_selection”,
   I put the exact words “post->post_name” in the default value. Is that right or
   do I have to name differently?
 *  Plugin Author [Roland Barker](https://wordpress.org/support/users/xnau/)
 * (@xnau)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/assign-value/#post-14251632)
 * that’s correct, just make sure you have the field assigned to appear on the signup
   form so it will collect the value when the person submits that form.
 *  Thread Starter [chickoder](https://wordpress.org/support/users/chickoder/)
 * (@chickoder)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/assign-value/#post-14261475)
 * There were no values stored. Am I doing it correctly?
    This is the code that 
   I used. [pdb_signup fields=”hidden_selection”]
 *  Plugin Author [Roland Barker](https://wordpress.org/support/users/xnau/)
 * (@xnau)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/assign-value/#post-14261599)
 * That won’t work, don’t do it in the shortcode. Go to the Manage Database Fields
   page and open the editor for your hidden field. “Signup” should be checked for
   all fields you want included in your signup form.
 *  Thread Starter [chickoder](https://wordpress.org/support/users/chickoder/)
 * (@chickoder)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/assign-value/#post-14261664)
 * That works! Thanks a lot for your help =)

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

The topic ‘Assign value’ is closed to new replies.

 * ![](https://ps.w.org/participants-database/assets/icon-256x256.jpg?rev=1389807)
 * [Participants Database](https://wordpress.org/plugins/participants-database/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/participants-database/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/participants-database/)
 * [Active Topics](https://wordpress.org/support/plugin/participants-database/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/participants-database/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/participants-database/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [chickoder](https://wordpress.org/support/users/chickoder/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/assign-value/#post-14261664)
 * Status: resolved