Expected behavior:
When passing text bound by <
and >
characters into a text field with a min length that is to be used in a post, one of the following should occur. Ie <OnlyTwentyCharacters>
- The resulting post escapes these characters correctly, and renders the text as given
- The wizard does not allow this answer to be submitted, as once rendered they will be less than the min length.
Actual Result:
The wizard allows the post to be created, which renders as empty, despite the 20 character minimum on the field.
Reproduction Steps:
Import the following wizard and attempt to submit <OnlyTwentyCharacters>
in the text field. The resulting post will be empty (does it interpret these characters as un-escaped HTML?).
[
{
"id": "test_1",
"name": "Test 1",
"save_submissions": true,
"steps": [
{
"id": "step_1",
"fields": [
{
"id": "step_1_field_5",
"label": "1",
"type": "text",
"min_length": "20"
}
]
}
],
"actions": [
{
"id": "action_1",
"run_after": "wizard_completion",
"type": "create_topic",
"post": "step_1_field_5",
"title": [
{
"type": "assignment",
"output": "Test",
"output_type": "text",
"output_connector": "set",
"pairs": []
}
],
"category": [
{
"type": "assignment",
"output_type": "category",
"output_connector": "set",
"pairs": [],
"output": [
8
]
}
]
}
]
}
]