Using Custom Field to add scripts code

i want to add this code for every post in my custom post type
i do same this Using ACF field to embed media player scripts
but same problem.
i create custom field {acf_bitrix24_form_button} and add the value like “click/565/sdcf34sf”


@Matej, can you help here?

Hi @AbdElrhman_Alnoby,

can you copy-paste the script here, so I can try locally?

Thanks,
Matej

1 Like
<script data-b24-form="click/82/1z0gro" data-skip-moving="true">
(function(w,d,u){
var s=d.createElement('script');s.async=true;s.src=u+'?'+(Date.now()/180000|0);
var h=d.getElementsByTagName('script')[0];h.parentNode.insertBefore(s,h);
})(window,document,'https://cdn.bitrix24.com/b1334073/crm/form/loader_82.js');
</script>

Thank you

@Matej this the script

Hey, I just checked and I can see the button, using the script your provided. If you copy-paste this script to the code element, does it not work for you?

CleanShot 2025-05-12 at 11.13.57@2x

Best regards,
Matej