I have a signups_edit.html in my custom theme. It has a variable 'profile_content_editable' for a textarea. I want to show some value as default whenever user is on this page. The page is opened, when user gets an email for account activation. The user can edit this value, but as default I want to show something there. How can I achieve this?
Hi Genelia,
You should be able to accomplish this by adding a "value:" attribute to the {% text_area "profile_content_editable", class:"textarea form-control" } liquid varible in the signups_edit.html file.
Once you add the attribute, your liquid variable should look like this ie. {% text_area "profile_content_editable", class:"textarea form-control", value:"text goes here" } .
If this does not work for you, let us know by sending us an email at [email protected] with the name of your nation.
Showing 4 reactions
Sign in with
http://nationbuilder.com/amyleaman/has_someone_has_filled_out_the_profile_content_editable_field_in_their_personal_settings
The same div and variable is on my profiles_show and profiles_show_wide page , like this below:
{% if profile.profile_content.size > 0 }
<div id=“intro” class=“intro”>
{{ profile.profile_content }}
</div>
{ endif %}
but the text that I updated in this variable through its value attribute does not show up on profiles_show and profiles_show_wide pages.
The content in this variable (‘profile_content_editable’) should then be accessible on profiles_show_wide.html.