Set label based on sign-up form input

hey, just had a look at the member documentation. How would I go about creating a signup form that, instead of giving every entry a predefined label, takes an input from a field and makes it a label, so if there was an text input field “favorite animal” or whatever, the user would get a label animal-$input label?

From the doc you linked:

  <input data-members-label type="hidden" value="Early Adopters" />

Except instead of it being a hidden type, make it a text type, and don’t set the value.

I /think/ that Ghost will make a new label when it receives a submission that includes one. You’ll want to test. :slight_smile:

1 Like