I'm trying to get the form data and store it in text file. I'm not getting the form data in the code.
/// Executes a submit action for logging the form submit status.
/// Initializes a new instance of the <see cref="LogSubmit"/> class.
/// Tries to convert the specified <paramref name="value" /> to an instance of the specified target type.
/// true if <paramref name="value" /> was converted successfully; otherwise, false.
can someone help me on what I'm doing wrong here ?
The "data" string you are referring to holds the configuration of your submit action. This does not contain the content of the form.
On your submit action sitecore item, the config is stored as json in the parameters field. This json is deserialised into a class you need to create that is passed to your custom submitaction in the "data" parameter. So this "data" you are referring to, is actualy just configuration.
The content of the form can be found in the formSubmitContext.
Where is the data saved on Submit action in Sitecore Forms?