This is a migrated thread and some comments may be shown as answers.

'No-Title' for title event

1 Answer 12 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Julien
Top achievements
Rank 1
Julien asked on 25 Apr 2017, 02:33 PM

hello,

I set the event title in jquery dynamically depending on selected value in 3 comboboxes and when I try to save the event in database, the title's value is 'No title'.

It's working when I write something manuelly.

Do you know why I have this issue ?

Thank you,

1 Answer, 1 is accepted

Sort by
0
Julien
Top achievements
Rank 1
answered on 26 Apr 2017, 10:17 AM

Found by myself.

Using OnSave event and "e.event.set()"

function scheduler_save(e) {
    var _fournisseur = $('#FournisseurCBB').val();
    if (!checkFournisseur(_fournisseur, e.event)) {
        e.preventDefault();
    }
    var _title = $('#txtTitre').val();
    e.event.set("title", _title);
}

 

Tags
Scheduler
Asked by
Julien
Top achievements
Rank 1
Answers by
Julien
Top achievements
Rank 1
Share this question
or