Mobile Scheduler show new event form error

Hello.
I created a button in my html and on that button click I show the new event form of scheduler.

Basicly, my code looks like:

html: button onclick=“f()”>add</button

jscript: function f(){ $$(‘scheduler’).$$(‘form’).show(); }

The form shows on the button click, but i get an error in console at load, ‘TypeError: t is null’ and after i select a new start date I get another error, ‘TypeError: e.start_date is undefined’

What exactly am I doing wrong here, cause I just can’t seem to realize what the problem is?

Hello,

What has happened with the “+” (add) button in the bottom toolbar ?

If this button or the toolbar is hidden (not removed), you can call onItemClick event handler for “add” button:

var addBtnId =  $$("scheduler").$$("add").config.id;
$$("scheduler").callEvent("onItemClick",[addBtnId]);

Hello Maria,

I removed the add button, I needed a completly different button to add new events. Actually my bottom_toolbar looks something like [{}] this at the moment.

I would not remove the toolbar and try to hide it. In this case, it would be possible to call ready handlers (the solution from my previous post):

$$("scheduler").$$("bottomBar").hide();

Ok, thanks a lot for the help!