Hi =)
Who can tell, you need to make a form that changes the input fields depending on the selected.

A small example:
There are several different replenishment systems, each system has a specific set of fields, how to make it so that when you click on one of the systems in the form, the input fields are displayed specifically for this system and there must also be validation.
The number of fields for each system is different, the conditions of validation too.

enter image description here

  • I would try to make tabs, and script validation on the server. - fedornabilkin
  • @fedornabilkin, and can the script be transferred dynamically from the form? - Ricco381
  • Why not? Add a hidden input, when changing tabs, write an input script. Although it is not quite elegantly obtained. - fedornabilkin
  • You can add PJax to the form - when you click on one of the replenishment systems - the request is sent to the server, and in the controller, depending on the selected system, we display the desired form - pa3py6aka
  • @fedornabilkin, and how to do it right? - Ricco381

0