How to pre-select a dropdown option based on a Memberstack custom field value? Answered
Hi there!
I'm trying to have a select field that already has an option selected depending on the custom field.
Ex. Select field has 2 options: Yes and No, and if a user has their custom field value as "No", I want the select field to have it as a default.
I tried data-ms-member="custom-field", it only populates form input fields.
If anyone knows how I can go about this please let me know. Thanks!
Comments
2 comments
Hey Marko Cveljo, was just testing this use-case and the select input field seems to prefill data based on the selected option when we use data-ms-member="custom-field" in a form.
If it does not work on your end, can you share a read-only link of the site to further troubleshoot this?
Tried it once again, now all of a sudden it works 😄
Thank you for the reply!
Please sign in to leave a comment.