Closed (works as designed)
Project:
Prepopulate
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Jul 2011 at 12:10 UTC
Updated:
21 Nov 2012 at 01:54 UTC
Hi,
This brilliant module does not prepopulate selects´s in D7
I have a field called field_newstype and i try to prepopulate it by calling /node/add/news?edit[field_newstype][value]=test (test is both the value and key)
/Anders
Comments
Comment #1
lewisnymanI've been trying to get this to work with a node reference also. It doesn't seem to work for any of the widget types. Select, radios or auto complete.
Comment #2
erle commentedJust wanted to mention, that I am using this to populate a select widget on a node_reference without issues. I took the name from the 'name' section of the html...
I used this form
"node/add/answers?edit[field_question_nr][und]=value"where 'field_question_nr' is the fieldname .. I have No Idea where 'und' came in the html output, but with that I could use this in a select.
the html out i took this from is pasted below
auto complete did not work, no idea why, don't know if I have the name wrong.. :)
Comment #3
erle commentedaddition to above: [und] i suspect comes from " und (for undetermined) is used in situations in which a language or languages must be indicated but the language cannot be identified. " .. I suppose I should read up if the above is the recommended way, my site is not a production site..., just a play area
Comment #4
mototribe commentedI'm prepopulating a taxonomy term "multiselect" field using ?edit[field_topics][und]=1 and it works fine.
However, when the user selects another topic or additional topics it will just save the preselected topic only.
It doesn't behave like this with other fields, for example if I prepopulate a title the user can overwrite it and the
correct value gets saved.
I hope this can get fixed, I love the module!
thanks
Comment #5
jbrauer commentedIf a field is changed and the pre-populated value is not overwriting any subsequent entry that is a bug according to how the module currently works. #1309934: After prepoulating fields (new) content can not be saved if it was edited before is where that issue is being addressed.