Closed pbitutsky closed 5 years ago
You can pass in data via the WTForms constructor i.e.
form = forms.EnrollmentForm(role=enrollment.role)
That probably requires moving some code around and making sure the logic still works.
@ja5087, I was not able to pass values through the constructor but found a better way to do this. Please see new changes.
This resolves #1358.
I've tried many different approaches to setting the Role select's value and nothing has worked except adding javascript. It is not ideal and I'm not proud of this PR, but it works.