"Create & Add Another" Contact form refresh troubles #11788

Closed
opened 2025-12-29 21:49:53 +01:00 by adam · 2 comments
Owner

Originally created by @zweeks34 on GitHub (Oct 28, 2025).

NetBox Edition

NetBox Community

NetBox Version

v.4.4.4

Python Version

3.12

Steps to Reproduce

  1. Create a new Contact (Organization > Contacts > Contacts > + Add)
  2. Enter Contact form details
  3. Click the "Create & Add Another" button
  4. Creation of 'name' success message appears
  5. BUG! - the details of the Contact form remain on the page. This gives the appearance as though the User has mis-clicked or not clicked the "Create and Add Another" button, especially if the User doesn't notice the 'success' message.

Note - the system is running Python 3.13.5

Expected Behavior

The Contact form should have been refreshed with empty form fields.

Observed Behavior

The data in each of the Contact form fields remain on the page.

Originally created by @zweeks34 on GitHub (Oct 28, 2025). ### NetBox Edition NetBox Community ### NetBox Version v.4.4.4 ### Python Version 3.12 ### Steps to Reproduce 1. Create a new Contact (Organization > Contacts > Contacts > + Add) 2. Enter Contact form details 3. Click the "Create & Add Another" button 4. Creation of 'name' success message appears 5. BUG! - the details of the Contact form remain on the page. This gives the appearance as though the User has mis-clicked or not clicked the "Create and Add Another" button, especially if the User doesn't notice the 'success' message. Note - the system is running Python 3.13.5 ### Expected Behavior The Contact form should have been refreshed with empty form fields. ### Observed Behavior The data in each of the Contact form fields remain on the page.
adam added the type: bugnetbox labels 2025-12-29 21:49:54 +01:00
adam closed this issue 2025-12-29 21:49:54 +01:00
Author
Owner

@pheus commented on GitHub (Oct 28, 2025):

Thanks for the report! I’m not a maintainer, just a NetBox user, but this looks like intended behavior.

Create & Add Another uses the model’s clone behavior. For Contact, these fields are cloned:
groups, name, title, phone, email, address, link.

This speeds up adding multiple similar contacts. That said, carrying over name can be surprising - maybe excluding name (or adding a “Create & Add Blank”) could be a useful enhancement if maintainers agree.

@pheus commented on GitHub (Oct 28, 2025): Thanks for the report! I’m not a maintainer, just a NetBox user, but this looks like intended behavior. **Create & Add Another** uses the model’s clone behavior. For **Contact**, these fields are cloned: `groups`, `name`, `title`, `phone`, `email`, `address`, `link`. This speeds up adding multiple similar contacts. That said, carrying over **name** can be surprising - maybe excluding `name` (or adding a “Create & Add Blank”) could be a useful enhancement if maintainers agree.
Author
Owner

@jnovinger commented on GitHub (Oct 28, 2025):

Thank you for the report @zweeks34, but @pheus is absolutely correct. This is in fact a feature and is intended behavior. When you click "Create & Add Another" there will be a toast message displayed in the bottom-right of the browser window (your #4) indicating what object was created, including a link to the newly created object. This serves as notification that the create action was successful.

If you believe that one or more of the fields for a contact are not appropriate for cloning when using the "Create & Add Another" function, then please file a feature request asking them to be removed, as @pheus mentioned.

@jnovinger commented on GitHub (Oct 28, 2025): Thank you for the report @zweeks34, but @pheus is absolutely correct. This is in fact a feature and is intended behavior. When you click "Create & Add Another" there will be a toast message displayed in the bottom-right of the browser window (your #4) indicating what object was created, including a link to the newly created object. This serves as notification that the create action was successful. If you believe that one or more of the fields for a contact are not appropriate for cloning when using the "Create & Add Another" function, then please file a feature request asking them to be removed, as @pheus mentioned.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11788