1

We created a SmartCapture form on a Marketing Cloud cloud page to be used for a data enrichment campaign. As part of the design, we have 2 pre-populated fields: physical address and account ID. Both of these are present in the form, but unlike other form fields such as name, surname, email, etc., these get pre-populated through AMPscript because we already have that data in the sendable data extension. Now, we would like to make those 2 fields non-editable ("read-only") fields, that would show the subscriber (prepoulated) information, but the information cannot be edited by the subscriber. Thanks

3

You need to add "readonly" in the input tag. Here's an example:

<input type="text" name="Name" data-field-type="Text" value="%%=v(@firstname)=%%" readonly>
1
  • Worked like a charm! Thanks!!! – nix9247 Sep 25 '19 at 12:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.