Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Dynamically Generated Blazor Form not model binding

$
0
0

I am trying to develop an app in which a quiz is generated dynamically at various instances to track a patient's progress. I am able to generate various instances of the form, have the form filled out and save the results. The problem is that the answers to the quiz are not posted upon submit - just the default values.

Generated Form

Co-Pilot tells me that user input is likely being lost due to the reinitialization of the TestFormModel. However, I am guarding against that, I thought.

OnInitializedAsync()

Here's the submit code:Submit Code

Any help in figuring this out greatly appreciated. The code for this is located at https://github.com/rswetnam/SequentialTests.


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>