Calendar EventDialog - NameField Bug

I have modified the example ‘Custom Event Editing’ and provided a nameField with the value ‘someText’.

I have also modified the eventDialogFields and added a field ‘someText’.

When I open the event dialog editor this new field is displayed but so is the Field ‘Event Name’. Since I have set nameField to ‘someText’ i.e. it is no longer set to default ‘name’, should it still be displaying this default ‘name’ field in the dialog?

For both the event and the hover over the event(yellow box) the value displayed is that from ‘someText’, which is what I expect.

Is this correct behaviour with the dialog?

  • A similar problem happens with the desriptionField and eventEditorFields.

Other then that the calendar seems to be a great addition.

Thank you

isc.DataSource.create({
    ID: "eventDS",
    fields:[
        {name:"eventId", primaryKey: true, type: "sequence"},
        {name:"name"},
        {name:"description"},
        {name:"startDate"},
        {name:"endDate"}
    ],
    clientOnly: true,
    testData: eventData
        
});     

isc.Calendar.create({
    ID: "eventCalendar", 
    dataSource: eventDS, 
    autoFetchData: true,
nameField: "someText",
    eventEditorFields: [
        // specify the last field from the default fields so that subsequent fields come after the 
        // default fields
        {name: "description"},
        // custom fields below
        {type:"header", defaultValue:"Event Options"},
        {name: "repeats", title: "Repeats", type: "select", colSpan: 4, defaultToFirstOption: true,
            valueMap: ["Does not repeat", "Daily","Weekly", "Monthly", "Yearly"]
        },
        {name: "reminderType", title: "Reminder", type: "select", width: 70, defaultToFirstOption: true,
            valueMap: ["Pop-up", "Email"]
        },
        {name: "reminderValue", showTitle: false, type: "text", width: 60, defaultValue:10},
        {name: "reminderUnits", showTitle: false, type: "select", width: 70, defaultToFirstOption: true,
            valueMap: ["minutes", "hours", "days"]
        }
    ],
    eventDialogFields: [
        {name: "someText",title: "Some Text", type:"text"},
        {name: "sharing", title: "Sharing", type: "radioGroup", 
            valueMap: ["Public", "Private"], vertical: false, width: 50
        }
    ]
    
});