|
When i submit a form i except the formdata to be present in the request without using As you can see, there is no Is there a way to do this? |
Replies: 2 comments
|
Hi! The docs should contain When it comes to submitting the form values without using binding is for now not possible, due to the way how the component lifecycle works. On each bind you can perform some custom logic, and also validate the field with instant feedback, like red validation message. I will think about possible solutions here, but fore now putting there Just to clarify, the request with new value will be triggered by default only when the field looses focus after the change, so not on each key stroke. |
|
I think we solved this, a fix is upcoming.. Need to test with files and this will be covered :) //your action called upon form submit:
public async Task Submit()
{
//manually
var email = this.Request.Form["Data.Email"];
//auto!
var success = await BindFormAsync(this.Data);
//and can access file via `Request.Form.Files`Went to #76 |

Hi! The docs should contain
hydro-bindin there, so I will fix them. Good catch and sorry for the confusion.When it comes to submitting the form values without using binding is for now not possible, due to the way how the component lifecycle works. On each bind you can perform some custom logic, and also validate the field with instant feedback, like red validation message. I will think about possible solutions here, but fore now putting there
hydro-bindis the only way.Just to clarify, the request with new value will be triggered by default only when the field looses focus after the change, so not on each key stroke.