How to get rich text data from Quill editor to pass through to Memberstack custom fields? Answered
I need some help getting a rich text form passing data to Memberstack.
I have the form displaying (including the rich text editor from Quill) and the other fields in the profile form are passing correctly, but the rich text is not.
The rich text field custom attribute is set to data-ms-member=“experience” in webflow and I have a custom field ID “experience” in Memberstack, but the data is not passing.
I’ve watched a bunch of videos, but I’m stuck.
Comments
6 comments
Hey Brian, if you could give me the following I can figure it out and get you a loom:
Hey Julian Galluzzo Not sure you’re still around but I see this error (check screenshot) and we added an (if) statement to check for a null value.
Also changed the querySelector to match the customField we want it to be saved in Memberstack (data-ms-member=“experience”)
Josh Lopez Can you check to see if you notice anything else? https://hustlewing-v1-1.webflow.io/members/create-profile
I’m not seeing any errors in the console anymore when the page has submitted, so I’m not sure the code is even running, but all the other fields are being saved in Memberstack BUT the quill section.
The code is from the article
New code we’re trying:
Try adding an event listener like:
object.addEventListener("submit", myScript);
Instead of the .onSubmit
Brian Ficho Can you try this
Brian Ficho https://www.loom.com/share/5e57e9fd50974142872612a0c84dcf3c
And another video just to show a test: https://www.loom.com/share/5a22a7c777834f0b8d856b6825cf8bdd
Thanks Julian Galluzzo Jayess - Got it working!
If it’s helpful to anyone else, it seems there were 2 things I needed to line up that throughout my testing that I guess I never did properly until you showed me these videos
1 - data-ms-member=“experience” needed to be only on the hidden field for the RTE
2 - I needed to update the code in the /body text to match “experience” vs “notes”, the default from the tutorial
Please sign in to leave a comment.