I have a cloud page with a form. When a customer submits this form they are directed to the Thank you landing page. I have two versions of the Thank you landing page.
- customers who rate us greater than 8 and
- customers who rate us less than 9.
The cloud page has form data which I want to post onto the Thank you page to pass back to a DE from there.
my code in the landing page below (this doesn't work)
Question: Can a url be passed into a form action based on a condition? how would i do it?
%%[ set @nps = RequestParameter('nps') If @nps > "8" then set @url = "www.yahoo.com" else set @url = "www.google.com" ENDIF ]%% <form action="%%=v(@url)=%%" method="post">