i get an error when i add CTA field

Hi,
in hubspot code design im trying to add cta field but i get internal error in bottom left.

Im trying to add call to action button but since i have custom module i have to do it by code. My html code is fine but only when i add cta field this error appears.
any idea why this happens and how i can fix this?
thanks!

Hi @AMehdi3

The reason you are seeing this error is because only Legacy CTAs are available to use in custom modules at the moment and HubSpot is trying to phase out the Legacy CTAs in 2024. This means that non-Enterprise portals will not be able to use CTAs in custom modules.

You will probably need to have a rich text field for inserting the CTAs in a cusotm module until there is a field provided for the new CTAs by HubSpot.