Hidden Fields not passing through to memberstack
Trying to get a hidden field to pass through to memberstack in webflow but cant seem to get it to pass through.
<input type="hidden" name="tick" value="yes" data-ms-member="tick”>
The form is tagged correctly and all other fields are coming through just not hidden field?
Comments
6 comments
Hey Oliver 👋 Can you share a link to the page? I'll be more help if I can test it for you.
And thinking out loud here... I wonder if Memberstack is setting the value to empty on page load 🤔 hmmmm
I think Duncan is correct. A link to the page would be really helpful. Is this for a signup form or another form?
Thanks team!
https://preview.webflow.com/preview/aiassists?utm_medium=preview_link&utm_source=designer&utm_content=aiassists&preview=5cce8e9411e16d39d0007b3fa5e91a5f&pageId=63bc8b5105a3e6229de1773e&workflow=preview
Ah, I understand now. Thank you for the link. What will the tick custom field be used for? What is happening is because you are using a profile form the Memberstack script sees the input field and replaces it with what is currently in the members data which is empty. So it overrides the value you set. To fix this you could do a couple of things. The easiest would be to add the hidden field to the signup form because at that point the member doesn't exist so it cant override it, or you could add a script that changed the value after Memberstack loads to override the override.
If the tick is for the "I agree to privacy policy and terms of use" checkbox you could just add the data-ms-member="tick” data attribute to the checkbox instead.
The checkbox was an obvious solution that I overlooked. Thank you team!
Please sign in to leave a comment.