Nothing here is unusual — a button builds a form and drops it into the page. But the Tag's substitution pass ran at page load, before this form existed, so its hidden field never gets touched.
Open the form, then re-read the inspector above.
--CLICK-ID--, even with the Tag running perfectly. Submitting sends that text
to the CRM as if it were a real identifier.
_atid to
the page URL, which is available to any form no matter when it is built. Point the field at
the URL parameter rather than at the placeholder:
var atid = new URLSearchParams(location.search).get('_atid');
hiddenField.value = atid || '';
AnyTrack('atclidToUrl', 'click_id'), then map the field to
click_id.