Hidden fields in Lightbox

I found this forum thread relating to hidden fields in the mobile scheduler

viewtopic.php?f=24&t=27704&p=87738

Is there a similar way to create hidden fields in the regular scheduler?

I looked in the documentation for the form for the regular scheduler, and checked out the section “Types of editors” but “hidden” is not an available editor type.

How can I create a hidden field and give it an initial value in the regular scheduler?

Would I need to do it by creating a custom editor? or is there an easier way?

I discovered a reply Stanislav made to a post which gives me an alternative method

scheduler.attachEvent("onEventSave",function(id,data){
      ... custom code ...
      data.mydata = "abc";

      return true;
}

So, if a hidden field is not possible, I should be able to do what I need via the “onEventSave”.

Yep, there is no hidden fields. But all properties assigned to the event object will be sent back to server side, for saving or any other kind of processing. So you can have multiple custom properties withou need to define related sections in lightbox.

Yes, that code that I has found that you supplied in another thread provides a much better solution than using hidden fields.

Thanks for confirming that was the best way to do it.