I'm looking to populate a hidden field within my Smart Capture form with a concatenated value. I'm not sure if I'm setting up the Ampscript properly.
I've tried to insert the AMPscript in a standalone HTML content block as well is in the Smart Capture Form itself(I can't seem to add in any code prior to the tag).
I've tried to concat date and email directly in the field (sure my syntax was wrong) as well as setting variables and calling them like below.
How should I set this up and where should I insert my AMPscript?
%%[ VAR @email, @date, @uniqueID SET @email = emailaddr SET @date = Now(1) SET @uniqueID = Concat(@email, @date) ]%% <input name="uniqueID" type="hidden" value="%%=v(@uniqueID)=%%">