Ecommerce Shopify WordPress Discussion

Adding x amount of fields based off previous field

So I am creating a form where users will be able to X amount of dependents to their data. For example, if they input that they will be adding 4 dependents, I need to populate 4 new rows to collect that data; dependent_1_first_name, dependent_1_relation, dependent_1_dob and so on. What is the proper way to handle this situation?
Hey buddy I hope you are having a great day! You can use the Ninja Form repeater to accomplish what you are wanting to do. https://ninjaforms.com/blog/ninja-forms-repeater-fields/

January 10, 2024

Our products

The help you need, when you need it

App by Turbo Engine

3 apps • 5.0 average rating

Turbosify Speed Booster

5.0 (7)
Get better conversions by optimizing shopify store Google page speed Installed

Turbosify Translator for Wordpress Woocommerce

5.0 (74) Free Wordpress Woocommerce Plugin
Translate your wordpress website to multiple language within 1 click, no configuration needed, no No technical required

Grow your business here

Whether you want to sell products down the street or around the world, we have all the tools you need.