search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

How to add more fields when creating events

Asked by Jeff
4 years ago.

I want add additional parameters when creating new events, I am able to define new parameters when generating the new event but the current implementation of either "prompt/confirm/alert" is far too simple and doesnt contain the functionality to add what I wish to attach to my events.

For example I want to add a description to my event, not just a title, but the prompt modal only has 1 input field. How can i modify this to allow more than 1 input?

Comment posted by Jeff
4 years ago.

Edit: I would also like for these input fields to be on the same prompt, and not having to have nested prompts in order to save each piece of data

Answer posted by Dan Letecky [DayPilot]
4 years ago.

You can use DayPilot.Modal to display a custom page. This approach requires that this page interacts with the server directly. You can find an example in the following tutorial:
https://code.daypilot.org/72248/html5-scheduler-and-modal-dialog-jquery

With the latest version of DayPilot.Modal included in DayPilot Pro you can also use DayPilot.Modal.form() method to create multiple fields programmatically. A quick tutorial explaining this approach will be available soon.

Comment posted by Dan Letecky [DayPilot]
4 years ago.

Please see also the new tutorial on using DayPilot.Modal.form():

https://code.daypilot.org/60913/javascript-scheduler-edit-multiple-fields-modal-dialog

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.