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
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.
Showing 2 reactions
Sign in with
NationBuilder employee
NationBuilder employee