Skip to main content

How can I include input variables for City & State in the signup page

I am having trouble rendering input boxes for city & state using liquid.  What is the VALID form fields for City & State because {% text_field "city", class:"input-box", placeholder:"Address" %} & {% text_field "state", class:"input-box", placeholder:"Address" %} seem not to be working as suggested here>> http://nationbuilder.com/signup_variables

Official response from

Hi Udeze, there needs to be a prefix on those calls for individual address fields; note that we only allow the one-line address field for user-submitted-addresses, but you could ask for billing, mailing, registered, or home addresses by using the appropriate prefix. eg. text_field "city" should be text_field "billing_address.city". If you look at the stock template for a Donation pagetype, you'll see a lot of examples of these liquid calls in use.

Share this post

Showing 2 reactions

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