Radio Buttons On New Events Not Working

According to[]=default&s[]=value&s[]=custom&s[]=control

When you have radio buttons and you want one to default to be selected you simply do this:
checked: “1”

I have done that one a recurring form with no luck. Here is what I have:

scheduler.config.lightbox.sections = [{ name: “description”, height: 50, map_to: “text”, type: “textarea”, focus: false },
{ name: “myOptions”, options: [
{ key: 2, label: “Option 2”, value: “2” },
{ key: 1, label: “Option 1”, value: “1”, checked: “1” }
], height: 21, width: 50, map_to: “myOptions”, type: “radio”
{ name: “recurring”, type: “recurring”, map_to: “rec_type”, button: “recurring” },
{ name: “time”, height: 72, type: “time”, map_to: “auto”}];

When I open the form neither are checked. What am I doing wrong?


Not sure, your link leads to dhtmlxForm documentation but you seem to be working with the dhtmlxScheduler details form. They are different.

Please check Detail’s form page in dhtmlxScheduler documentation.

Kind regards,

Right sorry. When I follow the link that you provided (which looks right) there is no mention of default selected in radio buttons