How to generate fields dynamically?
Hello,
I would like to make a form in which fields are generated according to a value selected in a Select.
I would like to be able to select the activity in a drop down list, then the list of packages (name of the package + textinput with the number) is displayed. How can I do this?
I would like a very clean display, so I would like if possible not to have to use a repeater but rather something like a foreach loop (but I don't know how to get the data from the current record in the form() function)
I would like to make a form in which fields are generated according to a value selected in a Select.
I would like to be able to select the activity in a drop down list, then the list of packages (name of the package + textinput with the number) is displayed. How can I do this?
I would like a very clean display, so I would like if possible not to have to use a repeater but rather something like a foreach loop (but I don't know how to get the data from the current record in the form() function)