Default values on lightbox

Hi I was looking for the way to put default values on lightbox, but I didn’t find anything, I don’t want to create a new form, I just want fill textarea form…

Thanks!!!

Hello,

Currently we don’t offer such functionality and for now I see two options:

  1. Create your own custom form.
  2. Attach to the onLightbox event, locate necessary elements in the lightbox form div and change them.

scheduler.attachEvent("onLightbox", function (event_id){ var lightbox_div = scheduler._lightbox; // your custom logic });
Best regards,
Ilya

That’s perfecto but how can I attach elements to lightbox div? Thanks

Sorry, I didn’t quite get your question.

Now in the lightbox_div variable you have a div which contains all lightbox form. So you can locate required element and change it properties.
For example to change event text you can do:

scheduler.attachEvent("onLightbox", function (event_id){ var lightbox_div = scheduler._lightbox; var text_field = lightbox_div.childNodes[1].childNodes[1].childNodes[0]; text_field.value = 'Some new value'; });
Best regards,
Ilya