Thank you so much for your reply.
I'm trying to build this following link feature in django, http://demo.smarttutorials.net/jquery-autocomplete/
By the above reference link at the bottom by choosing Country Name the rest of the fields like Country Number , Country Phone code, Country code will be auto populated, like this i'm trying to achieve in django, In my above models, in Order table when i give value to the serial_no the rest of the field's "name" and "author" should be autopulate. I achieved in one formset but unable to achieve in inline formset.
By the above image in the first record if i give value to serial_no the rest of fields "name" and "author" will get auto populate.But when i'm doing add another and tries to give value to serial_no the auto populate is not working.I'm trying to achieve this in inline formset for each add another record like above reference link. Please if any idea suggest me.Thanks in advance.
On Tue, Feb 17, 2015 at 2:14 PM, aRkadeFR <contact@arkade.info> wrote:
Hello,--
I got the same kind of probleme while working on the formset
couple days ago.
If this is related, the problem is the auto complete javascript that
doesn't go well with the jquery.formset.js.
You can add a function "added" in parameter of the formset function
for reloading the autocomplete widget.
something like:
```
$(function() {$(".inline.{{ orderformset.prefix }}").formset({prefix: "{{ orderformset.prefix }}",
added: function () { reload_auto_complete(); },
})})
```
About the deletion, is it on the front end or the backend you're
talking about?
If this is front -> check your javascript
If this is backend -> check all the values dumping request.POST
Hope I was useful
On 02/17/2015 06:01 AM, Ajay Kumar wrote:
Here by choosing serial_no and the rest of the fields name and author should be auto populate. Auto populate works for first inline formset and able to save it but when I add another inline formset auto populate is not working plus I'm unable to delete it or save it.
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/lrmCMNq3Esw/unsubscribe.
To unsubscribe from this group and all its topics, 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 http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/54E2FF5F.2070509%40arkade.info.
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPVZQLC_ySdCoRpb%3DLo1Sp1RLBGee5Gia3fCFzoqS3vGUFDkNA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:
Post a Comment