I have tried several things, and I can't seem to find any solutions that work.

Hello. I have been trying to figure out how to work with default values in webform module to populate a field with the title of a node that the webform was accessed from. I have tried this so far with no results.

I have put this line of code in a node with PHP as input type.

print $title; ">Fill out form

My form has %get[title] as a default value for a field.

When I click the link I created it tries to go here, which is broken:

http://libraryinjonesboro.org/?q=node/115?title=

It's as if the print $title; is doing nothing to the URL. I really don't understand how to make this work.

I have looked everywhere. I have tried the things I saw here as well, with no luck.

http://drupal.org/node/296453#webform-url-default

I am not able to use clean URLs on this server for whatever reason. Could this be suspect? (Clean URLs)

Comments

quicksketch’s picture

Status: Active » Closed (fixed)

Support for writing custom PHP code is not provided in the Webform issue queue.