Skip to main content

Activity

commented on Custom Fields not working for me on Event page
Unfortunately, this didn’t work. I’ve tried basically every combination I could find for your API, and I’m getting a different error on the donation page.

The following is my code:
First Option <br>
{% for cf in custom_fields.signup %}

{% assign custom_field = cf1 }
{
assign custom_field_id = ‘custom_values.’ | append: custom_field.slug }
<div class=“row-fluid”>
  <div class=“span12”>
    {
if custom_field.is_multiple_choice? }
    {{ custom_field.name }}
    {
collection_select custom_field_id, custom_fields.signup[custom_field.slug].multiple_choice_options, class:“select” }
    {
endif %}

  </div>
</div>
{% endfor %}
<br><br>

Second Option<br>
{{ request.current_signup.custom_values_for_display[‘lgba_2017_housing’] }}

<br><br>
Third Option<br>
{% collection_select “custom_values.lgba_2017_housing”, custom_fields.lgba_2017_housing.multiple_choice_options %}

<br>
Third Option B<br>
{% collection_select “custom_values.slug”, custom_fields.lgba_2017_housing.multiple_choice_options %}

<br>
Third Option C<br>
{% collection_select “custom_values.lgba_2017_housing”, custom_fields.slug.multiple_choice_options %}

<br><br>
Fourth Option<br>
{% collection_select “signup.custom_values.lgba_2017_housing”, custom_fields.signup.lgba_2017_housing.multiple_choice_options %}

<br>
Fourth Option B<br>
{% collection_select “signup.custom_values.slug”, custom_fields.signup.lgba_2017_housing.multiple_choice_options %}

<br>
Fourth Option C<br>
{% collection_select “signup.custom_values.lgba_2017_housing”, custom_fields.signup.slug.multiple_choice_options %}

<br><br>
Fifth Option<br>
{% for cf in custom_fields.signup }
{
assign custom_field = cf1 }
{
assign custom_field_id = ‘signup.custom_values.’ | append: custom_field.slug }
{
if custom_field.slug contains “lgba_2017_housing” }
<div class=“row-fluid”>
<div class=“span12”>
{{ custom_field.name }}
{
collection_select custom_field_id, custom_fields.signup[custom_field.slug].multiple_choice_options, class:“select” }
</div>
</div>
{
endif }
{
endfor %}

And the various errors I get
First Option

Housing Arrangements
Liquid error: undefined method `source’ for custom_values.lgba_2017_housing

Second Option
Second Option B

Third Option
Liquid error: undefined method `each’ for nil:NilClass
Third Option B
Liquid error: undefined method `each’ for nil:NilClass
Third Option C
Liquid error: undefined method `each’ for nil:NilClass

Fourth Option
Liquid error: undefined method `source’ for signup.custom_values.lgba_2017_housing
Fourth Option B
Liquid error: undefined method `source’ for signup.custom_values.slug
Fourth Option C
Liquid error: undefined method `each’ for nil:NilClass

Fifth Option
Housing Arrangements
Liquid error: undefined method `source’ for signup.custom_values.lgba_2017_housing
posted 2016-09-18 10:37:11 -0700