How to transfer user-selected CMS IDs from Memberstack to Webflow multi-reference field with Make? Answered

Post author
Shadi null

Quick question,

I was using one of Memberstack's components and following along with this documentation.

My goal was to get CMS ID's to populate a memberstack custom field through user selections, and then pass that back to webflow's CMS to populate a multi-reference field via a Make automation system I am working on.

Unfortunately webflow is not recognising it as a valid multireference field input (likely assumes it is all 1 ID and isn't recognising it as multiple ID's). I tried using a text parser to look for comma's from the custom field and then replace it with ", " as well as add a " at the beginning and end in the hopes that would help it webflow recognise them as separate values for a multireference field to no avail.

Would anyone happen to have any pointers?

I just need the ID's from the memberstack form component linked above to do a round trip back into a CMS multireference field.
Any pointers would be much appreciated! šŸ™‚

Comments

6 comments

  • Comment author
    Ben Sabic

    Hey Shadi null! Do you have each ID wrapped in quotes as well? You will need that as well because even with the comma separator, the Webflow API still requires that each individual ID be formatted that way

    0
  • Comment author
    Julian Galluzzo

    Could you maybe send a video? I’m sure I can figure this out šŸ™‚

    0
  • Comment author
    Shadi null

    Julian Galluzzo Just sent you a recording šŸ™‚ Thanks for the help!!!!
    Ben Sabic I did, but unfortunately webflow wont allow quotation within custom fields šŸ˜ž It deletes them automatically

    0
  • Comment author
    Ben Sabic

    Ah shoot :( Let me know if you need any help Julian Galluzzo

    0
  • Comment author
    Shadi null

    I figured it out!!!!!!!
    I added a split function to the string that contained the array so that it would no longer deem it 1 unit in an array, and ACTUALLY treat it as an array šŸ™‚
    The function looked like
    split( dynamic text goes here ; , )
    Ben Sabic What I found cool about this is that you no longer need any quotations at all!

    0
  • Comment author
    Ben Sabic

    GREAT work Shadi!! Thank you for sharing šŸ¤—

    0

Please sign in to leave a comment.