follow-up: “Can you pull CAS info into a webform?”
Request Type:
General Assistance
Issue/Request:
I’d also like to implement the auto-fill from CAS described here: http://yalesites.yale.edu/yalesites-forum/can-you-pull-cas-info-webform. I tried setting default values for name, email, phone:
[cas:ldap:displayname]
[cas:ldap:mail]
[cas:ldap:telephonenumber]
But when i log in to test the form (http://library.medicine.yale.edu/content/literature-search-request), it’s not auto-filling. I am guessing I’m using the wrong tokens?
Hello Andrew,
It could very well be the tokens. Try the following:
Thanks, Josue. i tried those tokens, and it looks like it is pulling from Drupal user profiles as opposed to the CAS data – the email address and the Drupal user name auto-fills, but the phone number doesn’t. I just emailed Eamonn Crowley-Edge to see if he’d be willing to tell me what worked for him.
I see. Let us know what you find out. In the mean time I noticed it is pulling my phone number, but not the name.
Josue
How about the following:
[current-user:cas:ldap:displayname]
[current-user:cas:ldap:mail]
[current-user:cas:ldap:field_phone]
Josue
YES! That worked, with one exception (“[current-user:cas:ldap:telephonenumber]” instead of “[current-user:cas:ldap:field_phone]”.) You’re the best. Have a great weekend!
Thanks. Glad it worked. Have a great weekend.
Josue