Assign textfield to each checked option in a checkboxes field
The conditional fields module should be suitable for this


  Conditional Fields allows you to manage sets of dependencies between
  fields. When a field is “dependent”, it will only be available for
  editing and displayed if the state of the “dependee” field matches the
  right condition.