We have a signup form that asks for the usual information about name, address, email etc.
We also need to ask who your employer is. This is a standard field in the database. How do I add it to the signup form? I don't want to use a survey form since that won't get the information into the users record (as far as I understand it).
Official response from NationBuilder Support
Hi Ethan,
Employer is a supported signup variable that can be added directly into the page template. It would look like this:
<td><p><label for="signup_employer">Employer</label><br>{% text_field "employer", class:"text" %}</p></td>
Share this post
Showing 16 reactions
Sign in with
You can see more info on working with custom fields here:
http://nationbuilder.com/request_custom_people_fields_on_webpages#field
for=“feedback_partner_organization”
for=“feedback_partner_title”
<pre>Organization{% text_field “partner_organization”, class:“text form-control” }
Title{ text_field “partner_title”, class:“text form-control” %}
</pre>
<div class=“col-md-6”><div class=“form-group”>Organization{% text_field “partner_organization”, class:“text form-control” }</div></div>
<div class=“col-md-6”><div class=“form-group”>Title{ text_field “partner_title”, class:“text form-control” %}</div></div>
Got the following error messages:
Liquid error: partner_organization is not a valid form field for Feedback.
Liquid error: partner_title is not a valid form field for Feedback.
Can anyone tell me what I did wrong?
Here’s what I have now:
Here’s what I have now:
Campaign Gears
Certified Architect
I eventually figured that out and have Employer (which on this site we’re using to hold people’s Union affiliation). I am wondering though, the other fields on the feedback form do not display if they already have a value for them.
That’s done using a test on a separate field that holds a boolean True/False depending on if data exists. Is there a way to make it such that Employer field only displays if it’s empty? Given there isn’t a boolean field for Employer, maybe by using a liquid filter or something?
And barring the ability to make the Employer field display only if it’s empty, is there a way to make it pre-populate with the Employer value?
Campaign Gears
Certified Architect
Campaign Gears
Certified Architect
Campaign Gears
Certified Architect
<p><lablel for=“signup_employer”>Union and Local</label><br>{% text_field “signup.employer”, class:“text” %}</p>
Campaign Gears
Certified Architect
But how to impliment it?
I tried:
<p>Employer:<br>{% text_field “signup.employer”, class:“text” %}</p>
but got the error:
Liquid error: signup is not a valid form field for Signup.
Campaign Gears
Certified Architect
Campaign Gears
Certified Architect