I think you have to add an I (as in “i”) before SPOILER with in each of the Parentheses so SPOILER would be ISPOILER in each.
Let’s see if it works:
Also, you cannot name the spoiler with this type. When I did that it didn’t work. You leave it blank and just press continue as follows...