I used formflow to ask a few questions and finally fill out the form. A unique identifier is generated and provided to the user at the end. Now, using this unique identifier, I want to change the form. Can I pre-populate the fields? Or is there any other way to do this?
This is the code I'm using to create the form for the first time:
public static IForm<AssesmentHelper> BuildForm()
{
OnCompletionAsyncDelegate<AssesmentHelper> wrapUpRequest = async (context, state) =>
{
};
return new FormBuilder<AssesmentHelper>()
.Message(Responses.NumberSelection)
.Field(nameof(Name))
.Field(nameof(Age))
.Field(nameof(Address))
.Field(nameof(Information))
.Field(nameof(Email), validate: ValidateMailId)
.AddRemainingFields()
.OnCompletion(wrapUpRequest)
.Build();
}
Now I want to pre-populate the fields (name, age, address) so that I can use it for editing.
source
share