I have a property that has an enumeration, in one of the values of the enumeration I have "help", if the user selects that option, I would like to do two things: 1. Send the user a text with help. 2. Ask the user if he wants to continue, or if he wants to leave. I do not know how to do it. thank you very much.
public enum ContentClassification
{
Confidential_Restricted = 1 ,
Confidential_Secret = 2,
Public = 3,
Strictly_Confidential = 4,
help = 5
};
public ContentClassification ContentClassification { get; set; }
return new FormBuilder() .Field(nameof(ContentClassification))
You may launch the
Form
many times, means if you get the "Help" choice from the firstForm
, launch another form for confirmation.For example:
And then create your
RootDialog
for example like this:You still need to implement the logic codes for other options in
GetResultAsync
method together with the logic codes to handle the result of second formBuildConfirmForm
.