Pop-up forms

37 views
Skip to first unread message

hernan43

unread,
Oct 9, 2006, 10:53:39 AM10/9/06
to Django users
In the Django admin, there is a feature where you can click a "+"
symbol and it will pop-up a form in another window that when you fill
it out an submit, it will add that item to the current form.

I'm not sure what you call that. I would like to add a similar
functionality to an app that I am developing, but I don't know the
correct term to search for. I have tried searching for "dynamic forms"
and "pop-up forms" and several combinations of the two, but I can't
find anything like it.

Does anyone know what you call that feature?
--Ray

James Bennett

unread,
Oct 9, 2006, 11:40:31 AM10/9/06
to django...@googlegroups.com
On 10/9/06, hernan43 <hern...@gmail.com> wrote:
> In the Django admin, there is a feature where you can click a "+"
> symbol and it will pop-up a form in another window that when you fill
> it out an submit, it will add that item to the current form.

The file you're looking for is here:

http://code.djangoproject.com/browser/django/trunk/django/contrib/admin/media/js/admin/RelatedObjectLookups.js

The JavaScript function which handles the popup goes by the unwieldy
name of "showRelatedObjectLookupPopup", and pops a window with a
special view, which populates the value back to the original window.

--
"May the forces of evil become confused on the way to your house."
-- George Carlin

hernan43

unread,
Oct 9, 2006, 4:31:19 PM10/9/06
to Django users
You wouldn't happen to know a good resource of where I can learn more
of how to create a form like this would you? I'd like to implement a
similar capability and would like to read up on how to do it.
--Ray

DrTen

unread,
Jan 8, 2019, 9:04:13 AM1/8/19
to Django users
Hi Did you ever solved this issue, its 2019 and I still can't find a working solution.

shiva kumar

unread,
Jan 9, 2019, 6:26:47 AM1/9/19
to django...@googlegroups.com
As i am new to django i dont know about pop-up forms.
can you give an overview of it please.


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/d66a086e-5ac0-4dbf-a1e0-c4a6ff64940c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages