I create a cloudpage with some checkboxes that reference a some Data Extension. Example image attached.
My attempted was use DeleteData in Ampscript with the syntax below:
Where Bike is my checkbox:
IF NOT EMPTY(@Bike) THEN
InsertData('Bike_DE','FirstName',@firstname,'LastName',@lastname,'Email',@email,'Telefone',@telefone,'CPF',@cpf)
ENDIF
IF EMPTY(@Bike) THEN
DeleteData('Bike_DE','FirstName',@firstname,'LastName',@lastname,'Email',@email,'Telefone',@telefone,'CPF',@cpf)
ENDIF
The fields in syntax like 'firstname' and etc. I want to delete if the checkbox was not checked.
I hope that my explanation that good. If anyone know how to help me, thanks in advance.