1

We are working on major project where client wants webform fields to be prepopulated from profile2 fields. Webform version 3.17

Is there any way to create tokens or similar from profile2 fields to be used on webform default values?

  • Is it possible to upgrade to webform 4.x? 4.x has improved token support. – Chance G Oct 11 '13 at 21:24
1

hook_form_alter(){ //and set default values form profile2_load_by_user(); }

|improve this answer|||||
0

In version 4.x webforms has token support and you can add fields from profile2.

For example, if you have a profile called chef and a field called (field_check_age), you should use this token: [current-user:profile-chef:field-chef-age]

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.