Title: Dynamically add field
Last modified: November 2, 2024

---

# Dynamically add field

 *  Resolved [jyotiskaborah](https://wordpress.org/support/users/jyotiskaborah/)
 * (@jyotiskaborah)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/dynamically-add-field/)
 * I want to add field(or div with multiple field) dynamically. for example :
 * when an user enters 3 (No of rooms Required), thus fieldname1 = 3. which creates
   3 new fieldnames to hold value of “type of room”.
 * Is there any possible way?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fdynamically-add-field%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [CodePeople2](https://wordpress.org/support/users/codepeople2/)
 * (@codepeople2)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/dynamically-add-field/#post-18110821)
 * Hello [@jyotiskaborah](https://wordpress.org/support/users/jyotiskaborah/)
 * You can create them with dependencies. You can insert the fields in the form 
   and activate or hide them at runtime based on a field’s value. Please watch the
   following video:
 * [https://youtu.be/s4FM59LC-H4](https://youtu.be/s4FM59LC-H4)
 * Another alternative would by display/activate the by pressing a button in the
   form:
 * [https://resources.developers4web.com/cff/tmp/videos/video-optional-fields.mp4](https://resources.developers4web.com/cff/tmp/videos/video-optional-fields.mp4)
 * Best regards.
 *  Thread Starter [jyotiskaborah](https://wordpress.org/support/users/jyotiskaborah/)
 * (@jyotiskaborah)
 * [1 year, 7 months ago](https://wordpress.org/support/topic/dynamically-add-field/#post-18111841)
 * Thankyou, It works. I implemented the second method, which is suitable for my
   project.

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

The topic ‘Dynamically add field’ is closed to new replies.

 * ![](https://ps.w.org/calculated-fields-form/assets/icon-256x256.jpg?rev=1734377)
 * [Calculated Fields Form](https://wordpress.org/plugins/calculated-fields-form/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/calculated-fields-form/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/calculated-fields-form/)
 * [Active Topics](https://wordpress.org/support/plugin/calculated-fields-form/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/calculated-fields-form/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/calculated-fields-form/reviews/)

## Tags

 * [add-field](https://wordpress.org/support/topic-tag/add-field/)
 * [dynamically](https://wordpress.org/support/topic-tag/dynamically/)
 * [new field](https://wordpress.org/support/topic-tag/new-field/)

 * 2 replies
 * 2 participants
 * Last reply from: [jyotiskaborah](https://wordpress.org/support/users/jyotiskaborah/)
 * Last activity: [1 year, 7 months ago](https://wordpress.org/support/topic/dynamically-add-field/#post-18111841)
 * Status: resolved