Skip to main content

Tags not transferring to embedded signup form signups

 

I'm attempting to include a signup form in the sidebar of my site that connects to the site signup page.  The idea being that the signup form in the sidebar would take the tags defined in the signup page, as well as have the user end up on the landing page defined.

I'm using the following code to do this:

{% include “signup_form” with site.signup_page %}

However, it doesn't appear to be working off of the settings from the site's signup page as it should.  By that I mean, it's not redirecting to the page defined therein and the signups aren't receiving the tag I've defined.

The redirect/landing page I can do without, but it's essential that the signups receive the signup page's defined tag.

Official response from

It sounds as though your signup form is working properly, but is lacking the {% hidden_field_tag %} that includes the information about which page on your site is the default signup page. As a result, your signups are being properly added but are being attributed to the current page and are therefore not being affected by the signup settings on your default signup page.

_signup_form.html_in_Aware_Charcoal_Clone_theme.png

In the _signup_form.html template of your theme, be sure that any customizations you make do not remove the {% hidden_field_tag "page_id", signup_form.id %} from within the {% form_for signup %} loop (as pictured above).

Share this post

Showing 12 reactions

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