Add string custom data option.

Adds the ability to return a string in the `beforeSubmit` function as the data to get passed in the POST request.