AdminEntry
8 years agoQrew Cadet
Create a button that saves the current record and adds a new record to the same table
In this application users need to add multiple records containing some similar values. In order to prevent them from having to enter the same information again and again on each record they create, I would like to give them a button that:
1. saves the current new record AND
2. initiates the adding of a new record with the fields that contain repeated information already populated.
The native "Save and add new" functionality accomplishes #1 above, but not #2. When using this native functionality, the user still needs to enter ALL of the information manually.
So far I've created a button labeled "Save and add another" which works great (except for the annoying prompt to "Save" the record before moving on) when the user clicks it for each subsequent record they need to create. The current record gets saved, and a new record is initiated with the repeated information auto-populating. Great! However, when they get to the last record and they use the native "Save and close" button, they get this nasty error:
"Record not found. It has probably been deleted. If you followed a link to get here, you may want to inform the author of that link that this record no longer exists." I'm not sure why this is happening.
Any thoughts on how to fix this?
1. saves the current new record AND
2. initiates the adding of a new record with the fields that contain repeated information already populated.
The native "Save and add new" functionality accomplishes #1 above, but not #2. When using this native functionality, the user still needs to enter ALL of the information manually.
So far I've created a button labeled "Save and add another" which works great (except for the annoying prompt to "Save" the record before moving on) when the user clicks it for each subsequent record they need to create. The current record gets saved, and a new record is initiated with the repeated information auto-populating. Great! However, when they get to the last record and they use the native "Save and close" button, they get this nasty error:
"Record not found. It has probably been deleted. If you followed a link to get here, you may want to inform the author of that link that this record no longer exists." I'm not sure why this is happening.
Any thoughts on how to fix this?