Picture of Tom Baum
Preselection in properties.schema
by Tom Baum - Wednesday, 20 December 2017, 12:14 PM
 

Is there a way to set the 'checked'-attribute of a radiobutton or checkbox in properties.schema? And how can i preselect an option of a select-list? I've tried the 'default' value, but without luck.

Picture of Matt Leathes
Re: Preselection in properties.schema
by Matt Leathes - Wednesday, 20 December 2017, 1:45 PM
 
I've tried the 'default' value, but without luck.

That's strange cause that's definitely the correct property to use...! You can see a checkbox example here and and a select-list example here.

Picture of Tom Baum
Re: Preselection in properties.schema
by Tom Baum - Wednesday, 20 December 2017, 5:23 PM
 

Matt,

thanks for your reply. For testing, I've copied your example into my properties.schema:

"testDropDown": {
      "type": "string",
      "required": true,
      "default": "completed",
      "title": "Tracking success status",
      "enum": ["completed", "passed", "failed", "incomplete"],
      "inputType": {
        "type": "Select",
        "options": ["completed", "passed", "failed", "incomplete"]
      },
      "validators": [],
      "help": "What status to report back to the LMS when the tracking criteria are met."
    }

 

That's what I get in author:

 

Picture of Matt Leathes
Re: Preselection in properties.schema
by Matt Leathes - Wednesday, 20 December 2017, 6:47 PM
 

Well yes, I see what you mean... I have to say I'm stumped and will have to defer to someone with better knowledge of the authoring tool!

Have you tried asking in the authoring tool chat room? it might be a bit quiet at the moment though as people are finishing for the holidays...

Picture of Tom Baum
Re: Preselection in properties.schema
by Tom Baum - Thursday, 21 December 2017, 9:44 AM
 
Okay, probably not my mistake. I think, I'll wait till next year. Marry Christmas and a happy new year!