Use CMS fields in embeded custom code inside rich text field in collection Item

Hi all

First post here even though I’m an avid reader.

So, I have a rich text field among CMS collection fields. I’m embedding custom code inside this rich text field.

But I don’t see the ‘+add field’ purple button on the right corner.

Is this unsupported?

Do you guys know of any workarounds? Is there a way to get these field’s values via JS or JQuery?

Thank you!!

Yes this is not supported. As to workarounds; that depends on what you are trying to do. If you have field values present in the DOM (maybe even hidden) you could grab them and act upon them with custom code.

Yes, I don’t know why I haven’t thought of this.

I’m just trying to get a CMS field on a form that is supposed to be embedded only in selected posts on our blog.

Thanks!!