Required filelds in Set

Hi,

I have defined a set with three items: 2 texts and 1 wysiwyg. The wysiwyg is supposed to be a mandatory field, the 2 texts are not mandatory.
I have tried the following:

{
      "type": "set",
      "name": "textOnly",
      "label": "Text only",
      "options": {
        "fields": [
          {
            "type": "text",
            "name": "sectionTitle",
            "label": "Section title"
          },
		  {
            "type": "text",
            "name": "sectionSubtitle",
            "label": "Section subtitle"
          },
		  {
            "type": "wysiwyg",
            "name": "text",
            "label": "Text",
            "required": true
          }
        ]
      }  
    }
	

Unfortunately it is not working. I also cannot find anything in the docs.
Does anyone of you have any idea how I can get it done that I get a mandatory (required) field in a set?

{
  "type": "set",
  "name": "textOnly",
  "label": "Text only",
  "options": {
"fields": [
  {
    "type": "text",
    "name": "sectionTitle",
    "label": "Section title"
  },
  {
    "type": "text",
    "name": "sectionSubtitle",
    "label": "Section subtitle",
    "options": {
      "required": true
    }
  },
  {
    "type": "wysiwyg",
    "name": "text",
    "label": "Text",
    "options": {
      "required": true
    }
  }
]
  }  
}

so it works for me, I had your same problem.

But for the wysiwyg field I don’t know if it works properly

Hi Alessandro,

it indeed works for a normal text like this: Thank you for helping me out here.
It also works for select.

Unfortunately it does not work with wysiwyg (I also tried with Image where it did not work :frowning: )

Hi,
I am very pleased to have helped you, for the images it should work correctly (from what I remember).

For the text wysiwyg yes as I wrote to you I also noticed that it does not work, but perhaps you can find something in the TinyMCE options.