Dynamically create fields based on integer value I have a requirement that I need to dynamically create x number of fields based on a supplied int value from a text box.

Example: There is a software content type. A user goes to add a new piece of software into the system. They received 11 keys/licenses with their purchase. The users enters 11 into a textbox, and then 11 license key fields display. The users enters in the 11 license keys and saves.

Hopefully that makes sense? Just looking for help deciding which fork in the road to take..
you should look into
Licensing

This module is useful for people that plan on integrating a software
licensing system on their site.
Features Out of the box, it provides the following:

Ability to generate, edit &amp; delete unlimited unique license keys.
Ability to export your keys into a CSV document, which you can mail merge and distribute with physical copies of your product.
Ability for users to 'register' their key when they sign up for a drupal account, or by visiting a page when logged in.
Users can have multiple keys registered to one account, and they are all displayed on their user page.
Provides views functionality for default and custom reports.
Brandable license keys like XXXX-BRAND-XXXX-XXXX-XXXX
This module does provide functionality out of the box, however - it's power is in the hooks it provides which allow you to extend this
further.


Commerce Product Key

This module lets sites implementing the Commerce module, attach
product keys to orders. Product keys / Vouchers are strings of text
that are used to unlock or activate a piece of software.