Skip to main content

How do i bring volunteer signup roles - check boxes to Home page volunteer signup form?

I have created new volunteer signup page and added roles for showing up the checkboxes in the volunteer signup , i have also set my current volunteer signup page as a default one, included in the layout file like this {% include "home_signup" %} (here home_signup is the file i created and copied template contents from my volunteer signup and pasted here  ), i was able to bring all the default fields of volunteer signup but i am not able to bring role check box fields , following code i added for bringing the check boxes as mentioned in the template, 

<code> 

<div class="padtopmore">
{% for volunteer_type in page.volunteer_signup.volunteer_types %}
<div class="row-fluid">
<div class="span12"><label class="checkbox">
{% check_box_tag 'volunteer_signup[volunteer_type_ids][]', volunteer_type.id, collection:volunteer_signup.volunteer_type_ids, member:volunteer_type.id, class:"checkbox" %}
{{ volunteer_type.name }}
</label></div>
</div>
{% endfor %}
</div>
{% hidden_field_tag 'volunteer_signup[volunteer_type_ids][]', '' %}

</code>

also i noticed that i was not able to get values in the email from volunteer signup selected checkboxes. Please suggest.

Thanks. 

Official response from

Hey Baskar,

You're on the right track! The issue you're running into is that you're including a partial template without linking it to a specific page to collection that information from. On the homepage, when you include your partial, you need to call it via the "subpage" method, where you associated the slug of a page to receive the information with a partial that collects it. In this case, you'll want to create a volunteer pagetype that you'll control all the tagging, followup, point person, etc assignments from, and then include both it and the partial on the homepage like this:

{% subpage "slug_of_volunteer_page" with "slug_of_partial_template" %}

Hope that helps!

Share this post

Showing 2 reactions

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