Hi,

I wish I could follow the instructions. I'm sure they're very clear but I don't understand how to execute URL Fill nor Prepopulate.

My objective:

I created a simple "Contact User" tab for each user to display on their profile (I used panels to accomplish this). So that when you click the tab, the user's contact page comes up. I used autopath and URL Alter to accomplish the URL reading: http://mysite.com/user/Mary/mail-to

I added a user reference field. How can I fill in the user reference field with "Mary" ?

So far I go to my field, Enable auto-fill from URL for this field, and see field_mail_to .... what next? Sorry, I'm a bit slow.

Thank you!

Comments

calefilm’s picture

By the way, this is not the drupal Contact page. I created a content type called Contact User.. it's a simple form to reference the user and type in a message in the body and send it to the user who's selected.


On node creation page, URL reads: http://mysite.com/user/Mary/mail-to

User reference field: ________

Body

Send



I add: "&field_mail_to=value" to URL (but what can I replace "value" with in order to grab "Mary" from the URL and place it in the field?

calefilm’s picture

My Solution: http://drupal.org/node/775126#comment-3746296

If I knew how to apply code using URL Fill I would do so, but this solution also works for what I was trying to do.

I would still like to learn how I can use URL Fill to simply take Mary and insert it into my User Reference Select List. Originally I was trying to do this to an autocomplete field, but obviously that was impossible.