Adding a members name field to signup form

I’m trying to add a @member.name field on the signup process. Currently this is what I’m adding to my form:

<input data-members-name type="text" placeholder="..." required="true" autocomplete="false" />

But the name value is being saved. Any idea on how I can debug this issue? Appreciate the help!

3 Likes

We haven’t got that functionality yet! But it will arrive eventually!

Thanks for the feedback, we’re listening to all of it :relaxed:

4 Likes

Awesome! It would also be really helpful to push the member’s name attribute to Stripe, once the user subscribers.

Thanks for the quick response. :smiley:

1 Like

Noted!

Is there any update on this?

Really would like to collect NAME with EMAIL on first signup so I can use it in theme and email for a more personalised experience.

2 Likes

I notice that “Name” is already part of the native member data:
image

Is it still uncollectable?

1 Like

And no API yet for members data, right? Is this admin UI the only place that “Name” is accessible?

2 Likes

Member data is available in the Admin API though it’s not yet documented on the Ghost site (https://ghost.org/docs/api/v3/admin/#endpoints).

The related file is here: https://github.com/TryGhost/Ghost/blob/master/core/server/api/canary/members.js

1 Like

Thanks @dan, looks like there’s a add call in that file that I’m guessing might pass through a “name” parameter… I’m not familiar with Ember and haven’t figured out models.Member.add versus member.save versus saveTask, but Admin/gh-member-settings-form.hbs at main · TryGhost/Admin · GitHub calls setProperty on “name” so seems like a decent bet.

Except… I don’t see that “add” wired up to the routing in https://github.com/TryGhost/Ghost/blob/master/core/server/web/members/app.js – all I see is a /members/api/member POST. That might do it, though, via https://github.com/TryGhost/Ghost/blob/master/core/server/services/members/middleware.js#L69 ?

I wonder how much work it would be to make a “data-members-name” input attribute work. Hum… https://github.com/TryGhost/Ghost/blob/master/core/server/public/members.js seems to send new member creation through /members/api/send-magic-link/ Err, where does @tryghost/magic-link live? Alright, enough rabbit trail for today.

2 Likes

Eh, I gave up on doing this before I launched my newsletter. I’ll just put a +1 on the feature request for “data-members-name” implementation

3 Likes

Hi @egg,

any ideas on when we can expect this feature to be live?

Peter

1 Like

There is a workaround around there or a possibility to develop with the actual API?

1 Like