I am using CloudPageURL to pass a couple of DE attributes along with a Constant variable and have them populate in a Cloudpage Smartcapture field that is hidden.
Below is my code in the email
<a href="%%=CloudPagesURL(3036,'id',[Id],'accountid',[ICP External],'nps', "0")=%%" target="_blank"><img class="survey-table" data-assetid="260729" src="button.png"></a>
[Id] & [ICP External] are DE attributes whereas 'nps' has a constant value of 0 that i want to pass.
Below is my code in the Cloud page
%%[
var @id, @nps, @accountid
set @id = RequestParameter('id')
set @nps = RequestParameter('nps')
set @accountid = RequestParameter('accountid')
]%%
<input name="Id" type="hidden" value="%%=v(@id)=%%">
<input name="accountid" type="hidden" value="%%=v(@accountid)=%%">
<input name="nps_rating" type="hidden" value="%%=v(@nps)=%%">
It works when i only pass DE attributes but says 'Bad request' if i include the 'nps' variable. What am i doing wrong here. Is it possible to pass a constant variable using CloudPagesURL along with attributes from the sendable DE?
Your help here is appreciated.