Skip to main content

How to I display custom field in public profile

I have created a custom field and it shows in the signup page . now I want to display that field in the public profile of the user

I tried 

{{ request.current_signup.custom_values_for_display['custom_field_slug'] }}

but this does not display anything for anonymous users

if I log in and visit other users public profile

I see the values I added in my profile

So what is the proper method to display custom people field in public profile

regards

 

 

 

Official response from

Devin has answered this question in the comments. Thanks Devin!

--------

Try this in your profile template instead: {{ profile.custom_values_for_display[‘INSERTCUSTOM FIELD SLUG HERE’] }} 

If you are trying to display data on a public profile don’t use request.current_signup. That will grab the data from the record of the logged in visitor, not the record associated to that profile.

Share this post

Showing 2 reactions

How would you tag this suggestion?
Please check your e-mail for a link to activate your account.