Wednesday, September 26, 2018

Re: How to add form field dynamically?

You could always mix jquery with formsets
Il 26 set 2018, 18:02 +0200, Joel Mathew <joel@joel.su>, ha scritto:
You would use jquery to create the button using the $(selector).html(code).
Since this doesnt fall within the scope of this django group, I wont elaborate. If you know basic javascript and jquery, it should be easy.



On Wed, 26 Sep 2018 at 19:25, Django Lover <sunilk.epixel@gmail.com> wrote:
Then What is the solution please let HELP ME?? I know that it will done by Jquery but how? I dont Know



On Wednesday, September 26, 2018 at 6:14:07 PM UTC+5:30, Joel wrote:
I don't think django alone can help you here. You need to do that with JavaScript.

On Wed 26 Sep, 2018, 6:01 PM Django Lover, <sunilk...@gmail.com> wrote:
Hi joel Thank for response.

I want something like this-

form.png










1- when I click on add row button a new Row (No-2) will create dynamically.
2- In the select product/service its an options dropdown. the option should have related model data(from table product and service list)
3-  when i save all records in the dynamic field save to the database.


I hope it clear to you. but if you need more information please let me know i am glad to discuss with you.

:)

--
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/768d0fb2-4155-40c3-b0fc-fc4dbd2ad553%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@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/2140d58d-fc8b-4dcf-9acd-d965afa46cbc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@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/CAA%3Diw_8%3D6wQ7kg0TshMDHEBnD7hPfRq65nERkOMO%3D4XoDZ%2BjAg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment