Web Hosting Geeks | Web Hosting Experts
Need help? Call us 1(866)TOP-HOST

14318 reviews 1707 hosting providers

Questions & Answers

How to make default values for user reference Field in Drupal7

Sep 28, 2012 by DruNew
Hi there,

I want to create a default value for user reference field. I want users to fill in details for themselves and I want the details to be referenced. I am not sure how to approach this. Can anyone please help me out with any ideas on how to do this?
Many thanks.

1 Answer

0 votes
Sep 28, 2012 by RalphK
Try the following:
1.Enable PHP filter code module
2.From admin go to people-permissions
3.Enable 'Use PHP for settings' for your roles that you trust
4.select Filtered text  from the field settings and chose PHP code as the Default value input
You should also install CCK module.