Multiple data entries
Multiple data entries
When I use the "create new entry" for data input, I would like to open a new input form as soon as I submit the latter. This would allow for a more rapid input of data when I have multiple data entries.
Are there any examples that already show this?
This discussion has been closed.
Answers
There aren't any examples of that exactly, but you could do it in a number of different ways:
formButtons
option of thecreate
button that will submit the form and then create a new one in the submit callback.create
) that will call thecreate()
method and assign a set of form buttons (buttons()
) that will call thesubmit()
method to submit the form and thencreate()
again to create a new form.submitComplete
event when creating a new entry and then callcreate()
when that event happens.Allan
Still a little unsure of how I implement this. If I go with your suggested option 1, it should give me a create button with the CREATE Entry Form, that when pressed will
1. Submit the current input of the form
2. Produce another CREATE Entry Form.
I have experimented with a CANCEL button, which works but cannot see how I embed the create function.
My current code looks like this:
Looks like you are heading down the correct track there. Rather than
'Create',
you would specify a button using the object syntax (like you do with the following button) and have the function executesubmit()
, which accepts a callback function would in turn would callcreate()
.Allan