I have a DE with three columns with values and two with no values.
I want to send an email to this DE. The email contains a link to a Cloudpage landing page with a form & as customers fill the form I want the respective rows updated i.e. column 4 & 5 with their preferences.
My question is, Is this doable? if yes, then is the below code correct to be used in the Cloud page?
%%[ VAR @dataExtensionName, @formSubmitted, @Product, @Duration SET @dataExtensionName = "testingcloudpage" SET @formSubmitted = IsNullDefault(RequestParameter("submit"), "") IF @formSubmitted == "submit" THEN SET @Product = IsNullDefault(RequestParameter("Product"), "") SET @Duration = IsNullDefault(RequestParameter("Duration"), "") ENDIF ]%%
Also, where do I enter this code? Is it in the HTML editor of the submit button of the cloud landing page?