Hi Radzen Team,
I have two RadzenTemplateForm
in the same page. When submitting one of the two, I get an error saying that @formname
is not set.
Could it be possible to have in one of the next releases a FormName
or simply a Name
property that could be sent as @formname
during the submit (in my case POST
...) operation ?
Thanks
Not sure what is @formname
, can you clarify? There isn't such code in our component:
Sure, I understand, but when I have two forms in the same page, a unique Name should be set otherwise it will raise an error:
the post request does not specify which form is being submitted. to fix this, ensure <form> elements have a @formname attribute with any unique value
.
I suppose this is due to the underlying <form>
that you have in the RadzenTemplateForm
wrapper.
Thanks
Hi @mpolazzo,
RadzenTemplateForm does not support this case because the required API is internal. I've logged an issue with Microsoft today.
hi @korchev , I have seen the answer from Microsoft in the ticket you raised.
Is this FormMappingContext
that he mentions in the answer something that we can use directly or is it something that you must implement and expose inside RadzenTemplateForm
?
Thanks a lot for your support.
Marco
We haven't investigated that further and don't know if FormMappingContext would help or not. You are welcome to try it with the Radzen.Blazor source code and submit a pull request if you make it work.