What is the correct code for creating individual address fields for the Action Theme?

The how-to on this doc (http://nationbuilder.com/create_individual_address_fields_on_forms) doesn't work for the Action theme. Is there a new doc somewhere with the correct code for this theme?

Official response from

Hey Josh - 


That code snippet was created originally for themes working on Bootstrap2. Action is developed working on a more up to date Bootstrap3 which has a few changes (such as row-fluid is now rows and span# is col-md-#). 


You'll want to use the following snippet of code instead: 

<div class="row">
<div class="col-md-4"><label for="signup_home_address_city">City</label>{% text_field "home_address.city", class:"text", placeholder:"city" %}</div>
{% include "home_address_state_dropdown" %}
<div class="col-md-4"><label for="signup_home_address_zip">Zip Code*</label>{% text_field "home_address.zip", class:"text", placeholder:"zip code", required:"required" %}</div>


If you need any help with this, please reach out to us at help@nationbuilder.com

Complete and current information on how to use NationBuilder is available in the documentation section.

Share this post

Showing 3 reactions

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