-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using the enter key to submit a form during object creation defaults to "save & add another" #9437
Comments
#7823 |
Thank you for opening a bug report. Unfortunately, the information you have provided is not sufficient for someone else to attempt to reproduce the reported behavior. Remember, each bug report must include detailed steps that someone else can follow on a clean, empty NetBox installation to reproduce the exact problem you're experiencing. These instructions should include the creation of any involved objects, any configuration changes, and complete accounting of the actions being taken. Also be sure that your report does not reference data on the public NetBox demo, as that is subject to change at any time by an outside party and cannot be relied upon for bug reports. |
@jeremystretch
Basically, any form that has You can see the github issue I've mentioned in the previous reply for more information, you've resolved this in the past for only one form. |
You only need to use one as an example. The key is to provide exact instructions that someone else can follow to confirm whether or not they can reproduce the bug. |
|
This is not accurate. The form is being submitted using the "Create & Add Another" submission button, because it appears before the regular "Create" button. The interface is being created successfully (as indicated by the success message), and the user is redirected back to the interface creation page. I'm not sure what the intent was re: #7823 but it should never be necessary to use Javascript to submit the form. All we need to do to make the "create"/"save" button default is to reorder the buttons so that it appears first. |
NetBox version
v3.2.3
Python version
3.9
Steps to Reproduce
redirect_url
Expected Behavior
The website should redirect to the link in the
redirect_url
parameterObserved Behavior
The website redirects to the same page again as if "create & add another" was clicked
The text was updated successfully, but these errors were encountered: