Skip to main content

Custom fields not working

I am following instructions here:

http://nationbuilder.com/how_to_create_custom_people_fields

on this page:

https://beyondzeroemissions.nationbuilder.com/admin/sites/2/pages/26/template

specifically line 55

 {% collection_select "signup.custom_values.house_type", custom_fields.multiple_choice_options.house_type %}

causing this error:

Liquid error: undefined method `each' for nil:NilClass

http://energyfreedom-beyondzeroemissions.nationbuilder.com/pledge

Official response from

I apologize for the confusion! I think you've been able to sort out the trouble you were having. After I published the page on how to create custom people fields, our engineering team did more work which caused the syntax for displaying multiple choice fields to change. I've updated the how to page to reflect those changes. Please let us know if you're still having difficulty.

In particular, to display a multiple choice custom field here is the Liquid code:

{% collection_select "signup.custom_values.slug", custom_fields.signup.slug.multiple_choice_options %}

Please let us know if you're still having difficulty.

Share this post

Showing 9 reactions

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