I'm wondering if someone can possibly shed some light here, I have a smart capture form I'm building that has an add/update feature because of the primary key of "emailaddress"
I am pulling in the email address into a query string, which works great... the only thing though, is that I would like it to show a user's choice if they have already put in values into the DE previously.
For example here is the front end of the form, I would like it to show the choices a recipient already has before loading the page - similar to how it's pulling in their subscriber record. Is that possible? This page was built all with smart capture / cloud pages and a little ampscript to pull in their email address.
Sounds like a preference center. You can look up values in the DE based on the email address you already have using the
Lookup
function. This assumes the email address variable isEmailAddress
.And then in your HTML for the form you set the value of the
input
element like this below, assuming the values for the "EventBooleanNullable2" in the DE aretrue
orfalse
.https://ampscript.guide/lookup/