Closed (fixed)
Project:
Prepopulate
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
26 Dec 2011 at 08:59 UTC
Updated:
6 Oct 2020 at 15:35 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
rightclick commentedThank you for the patch
Worked also with node checkbox with a small modification
edit[field_designers][und][10]=true
Comment #2
ashrafabedJust attaching an updated patch since I had to use it for my site.
Comment #3
rightclick commentedThere is an issue with urls like this "edit[field_designers][und][10]=true". Overlay redirect URL try to create 9 array indexes with empty values.
We changed the code to:
and use urls like :
Comment #4
mototribe commentedthe first patch worked for me. Thank you!!!
Comment #5
jpstrikesback commentedHere is a version that works for checkbox & checkboxes widgets and allows one to check & uncheck fields by either setting a value or not:
Checkboxes:
checked : edit[field_interest][und][1]=1
not checked : edit[field_interest][und][3]=0
Checkbox:
checked : edit[field_thing][und]=1
not checked : edit[field_thing][und]=0
Comment #6
eddie_c commentedThanks a lot for the patch jpstrikesback. It didn't quite apply properly for me so I've re-rolled it using branch 7.x-2.x.
Comment #6.0
eddie_c commentedEdit field name
Comment #7
Renee S commentedThe patch reroll by @eddie_c in #6 works great for me.
Comment #8
kiwad commented+1 for #6
Comment #9
rollingnet commentedI can confirm #6 works great
Please review and submit it to dev
Comment #10
joachim commentedWorks great for me, for taxonomy term ref fields too.
Comment #12
jbrauer commentedCommitted, Thanks!
Comment #14
zoraxDo you have a solution for drupal 8 - 9 ?Thanks