You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a dropdown and a DepDrop for each row. When there is an error in submission, only the DepDrop value is lost since there is a function to retrieve the data options. I have tried with regular dropdowns, and I have tried to pass the selected value to the DepDrop’s function or to capture it with POST. I tried to see how I can keep the values using a function inside the model, which I already do for “required” validation. I have never found a solution. Any help is appreciated thanks.
Hello, did you find any solution for it? I am having a similar problem, it happens that I have a select2 and two DepDrops dependent on it, apart in the same form add a MultipleInput in which a column is of the DepDrop type that also depends on Select2, by adding a new row to the MultipleInput all the DepDrops dependent on select2 are initialized and I don't understand why, can anyone name a solution?
I have a dropdown and a DepDrop for each row. When there is an error in submission, only the DepDrop value is lost since there is a function to retrieve the data options. I have tried with regular dropdowns, and I have tried to pass the selected value to the DepDrop’s function or to capture it with POST. I tried to see how I can keep the values using a function inside the model, which I already do for “required” validation. I have never found a solution. Any help is appreciated thanks.
View:
Controller:
Validation function in model:
The text was updated successfully, but these errors were encountered: