%%[
var @email, @CCID, @SubmitDate, @Brand, @sendId, @q2_azera, @q2_gold_blend, @q2_original, @q2_iced, @q2_frothy_sachets, @q2_other, @formskip
SET @CCID = RequestParameter("CCID")
SET @email = RequestParameter("email")
SET @SubmitDate = now()
SET @sendId = RequestParameter("sendId")
SET @Brand = "Nescafe"
SET @q2_azera = IIF(RequestParameter("q2_azera")=="y",'y','n')
SET @q2_gold_blend = IIF(RequestParameter("q2_gold_blend")=="y",'y','n')
SET @q2_original = IIF(RequestParameter("q2_original")=="y",'y','n')
SET @q2_iced = IIF(RequestParameter("q2_iced")=="y",'y','n')
SET @q2_frothy_sachets = IIF(RequestParameter("q2_frothy_sachets")=="y",'y','n')
SET @q2_other = IIF(RequestParameter("q2_other")=="y",'y','n')
SET @radio = Lookup("NUK3529603_Nescafe_PDC_Landing_Page_2026_Submissions", "q3_coffee_role", "CCID", @CCID)
UpsertData("NUK3529603_Nescafe_PDC_Landing_Page_2026_Submissions",1,"CCID", @CCID,"email", @email, "Brand", @Brand,"SubmitDate", @SubmitDate, "sendId", @sendId, "q2_azera", @q2_azera, "q2_gold_blend", @q2_gold_blend, "q2_original", @q2_original, "q2_iced", @q2_iced, "q2_frothy_sachets", @q2_frothy_sachets, "q2_other", @q2_other)
SET @formskip = "n"
ENDIF
SET @completedcheck = Lookup("NUK3529603_Nescafe_PDC_Landing_Page_2026_Submissions", "q3_coffee_role", "CCID", @CCID)
IF NOT EMPTY(@completedcheck) THEN
SET @completed = "y"
ENDIF
]%%