Closed (fixed)
Project:
Prepopulate
Version:
7.x-2.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
9 Dec 2011 at 07:49 UTC
Updated:
22 Sep 2012 at 12:11 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
TXANKETE commentedTry this:
node/add/article?edit[country][value]=5
node/add/article?edit[country[und]][value]=5
node/add/content?edit[country][0][article]=5
Comment #2
liliplanet commentedthank you so much for your reply TXANKETE, but tried all you mentioned with no results.
field_country is a drop-down list of taxonomy terms and value 5 is for example Belgium
so basically i would like please:
node/add/ .. type is 'article' .. select from taxonomy called 'category' .. 'the value of 5'
'field_country' is the field in my content type.
would so love to make this work :) most appreciate any direction ..
Comment #3
TXANKETE commentedTry this:
node/add/article?edit[country][und][value]=5
Comment #4
liliplanet commentedMost appreciate your reply, but already tried that in #1 (and unfortunately no joy)
I'm attaching screenshots, maybe that might push us in the right direction :)
Would love to make this work and most thankful for your help.
Comment #5
TXANKETE commentedI solved the problem
You must enter the full path. Try these:
http://www.my-site/node/add/article?edit[field_country][value]=5
http://www.my-site/node/add/article?edit[field_country[und]][value]=5
http://www.my-site/node/add/content?edit[field_country][0][article]=5
Comment #6
liliplanet commentedThank you TXANKETE, I do use the full address in my url.
At a loss now and unfortunate that I cannot solve this .. maybe another solution is www.drupal.org/project/multistep to make sure users select the correct category before they continue with the form.
Most appreciate your help :)
Comment #7
adriancotter commentedHey Liliplanet,
One thing you have to make sure is that you are setting the value of the option, not the text (but it looks like you are already doing that).
For instance, this is my SELECT field:
CaliforniaOn my form it populates correctly, using:
http://url.com/node/add/contenttype?edit[field_states][und]=84
If your select form was similar name="field_country[und]" then this should work:
node/add/article?edit[field_country][und]=5
Comment #8
R.J. Steinert commented> http://url.com/node/add/contenttype?edit[field_states][und]=84
That example worked for me.
Comment #9
R.J. Steinert commented> http://url.com/node/add/contenttype?edit[field_states][und]=84
That example worked for me.
Comment #10
liliplanet commentedComment #12
rudyard55 commented# 7 worked for me too. Thanks adriancotter.