Title: Action based on input field value
Last modified: April 30, 2018

---

# Action based on input field value

 *  [charliei](https://wordpress.org/support/users/charliei/)
 * (@charliei)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/action-based-on-input-field-value/)
 * Hi,
 * I really enjoy using your plugin.
 * I have a situation where depending on the value to one on the input fields I 
   wish to add some extra fields for the user to input but I only want to show them
   when they user answers the initial question ie I don’t want to clutter the initial
   presentation of the input form.
 * I think I want to do the with the action parameter but I need to make it conditional.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Roland Barker](https://wordpress.org/support/users/xnau/)
 * (@xnau)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/action-based-on-input-field-value/#post-10236455)
 * This sort of thing is typically done using some javascript that will hide or 
   show fields based on the user’s input. It can be tricky if you’ve got required
   fields in there, because it’s validated when the form is submitted.
 * So, if you’ve got some ability with javascript, it’s not hard, you can use a 
   custom template to add your javascript.
 * I can’t really just give you some code to use, I’m sorry.

Viewing 1 replies (of 1 total)

The topic ‘Action based on input field 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [Roland Barker](https://wordpress.org/support/users/xnau/)
 * Last activity: [8 years, 1 month ago](https://wordpress.org/support/topic/action-based-on-input-field-value/#post-10236455)
 * Status: not resolved