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