I am facing challenge in creating and saving "dynamically" text field data for customer record.
I am building application screen. It has customer detail and each customer record has one or multiple nominee names.
On customer record screen, user can decide to add or remove and increase or decrease the total number of Nominee field.
User can click UP or DOWN arrow icons to increase or decrease total number of nominees.
New nominee text boxes must be created once user click OK button.
Example: user decides for 4 nominees for specific customer, then 4 text box fields should be created.
Once user enter nominee names and click SAVE button, I want same number of nominee details should be saved in the Dataverse.
Example: If user selected 5 nominee and enter 5 nominee names for Customer Record A, then 5 names should be saved in dataverse. Next time if user select 7 nominees for another customer Record B then 7 nominees text fields should be available for user to enter 7 nominees names and then save the 7 nominee names in the database.
I need help or ideas for:
a) How to create new text input fields dynamically for user decided number for nominees.
b) How to save the nominee names every time when user click the save button and link saved nominee names with each customer record.
I am confused for how to link and save variable number of nominee names for each customer record.
Any ideas / suggestion or code snippets may be helpful.
Sharing screenshots of my application screen for more insights.
Thanks in advance.