Variable strings

kwgossett - April 19, 2008 - 06:10

Hello all,
I've created a role-application using Webforms.

I want to use data from this application to auto-populate various fields - ie: first name, last name & business address can/should be used to auto-populate various event-related fields hosted by the person filling out the application.

To my knowledge, Drupal doesnt ask for First name or Last name (only username & email), so my application is the first step in collecting that info. Once collected, I'd like to reuse it to auto-populate forms to save some time; %firstname, %lastname, etc.

A search on 'strings' and 'variables' lead to 100's of php-related forum post, most unrelated to this question....and being a newbie, I'd rather avoid php snippets if possible.

String Overrides kinda looks helpful, but its also a bit over my head to follow...seems like an overkill.

Has anyone done this before w/o php? If so, I'd appreciate any info.
Thanks,
Kelly

Profile module

Jody Lynn - April 19, 2008 - 13:56

You can probably collect this kind of information more simply with profile module than webform, and this will also simplify the code needed to do the auto-population. I don't believe there is any way to create very custom field-specific functionality in a php-based program without writing a line of php. You will have to include php in the 'default value' section of your cck fields. I won't bother trying to explain further how to do so since you rule out using php.

 
 

Drupal is a registered trademark of Dries Buytaert.