7 votes

How to prevent other people to unsubscribe on behalf of the subscriber?

You can't prevent this. Should I forward my email to you, you will indeed be able to click the Unsubscribe link, and unsubscribe on my behalf. There are no recommended ways of preventing it, but there ...
  • 17.6k
4 votes
Accepted

Is it possible to use the Smart Capture form on another website?

You have two options here: Create a normal CloudPage with a SmartCapture form and iframe it onto another website. Or Use the DEManager functionality, which is a Marketing Cloud standard ...
  • 11.7k
4 votes

How to fetch a variable declared in ssjs script into client side script

If the output of <ctrl:var /> is a string, then you would need to wrap it in quotes to show it as such. Although in many places this is automatically done, but it is not done with this output. ...
  • 28.7k
3 votes
Accepted

Code disappears from Cloud Page after saving or publishing in SFMC

This could be related to the recent issue described here: https://trailblazer.salesforce.com/issues_view?id=a1p4V000000pbKRQAY Problem: When saving a code resource with a script tag that uses single ...
  • 17.6k
3 votes
Accepted

Redirect to Cloudpage using Page ID on a Lookup script

you are inside an AMPScript definition block (opened by %%[ and closed by ]%%) so you do not need to (in fact, shouldn't) add the inline ampscript markings (%%= and =%%) for functions inside it. This ...
3 votes
Accepted

How to hide a logging error in a Marketing Cloud Cloud Page?

The error you are seeing means that an insert to a Data Extension in Marketing Cloud is failing. The data extension is called “SubscriptionCenter_Log” and the script seems to be failing to insert a ...
  • 11.7k
2 votes

How to Lookup a Primary Key, if value is not empty, redirecting to a specific link

Try this, seems you almost got it right. Paste this at the very top of your CloudPage, somewhere above the Smart Capture form: %%[ SET @ROWS = LOOKUPROWS('Test_0930_Email','EMAIL', EMAILADDR) IF ...
  • 11.7k
2 votes
Accepted

Concat Smart Capture values going to URL upon submission

Your AMPscript variables @EMAIL, @NAME, and @MOBILE are empty. That is why you end up with only parameter names but no values in the submission link. Unfortunately, you cannot capture input values ...
  • 2,364
2 votes

.vtt file formats be hosted on SFMC - Content

No. List of supported file types can be found here.
  • 5,457
2 votes
Accepted

Are subdomains included in a Private Domain for Marketing Cloud without SAP?

Subdomains are not included. Note: Don’t just make up sub-domain names. If company-email.com is the SAP domain, and you want to add “order.company-email.com” -- it must be set up as private domain. ...
2 votes
Accepted

WSProxy Data Extension AddOnly bug

In order to add only record you would use a different method - createItem, so that your code will look something like that: <script language="javascript" runat="server"> ...
  • 2,364
2 votes

redirected deleted classic landing page "URL" to cloud page

Once a page is deleted, you cannot set up redirects, etc. as you no longer have access to the page. I believe this is especially true with Classic pages as they have been (or in some cases are in the ...
  • 28.7k
2 votes
Accepted

Marketing Cloud - Unable to store the data into DE

It's a quite complex solution that you have come up with to grab questions and answers from a DE dynamically and to set all input names dynamically as well. What is missing in your script, is the same ...
  • 11.7k
2 votes
Accepted

Dropdown List In CloudPage

First, you need to wrap it in a html form tag and define the page where the data should be posted, like this. Replace url of the target page with an actual url below: %%[ SET @IndividualDE = "One&...
  • 11.7k
1 vote
Accepted

Consent Management - Sync Consent from a dynamic Cloudpage to Salesforce

I suspect you're not setting @MarketID on POST. You can set that as a hidden input like cid. Debugging output is your friend. I like to explicitly distinguish between GET and POST. <script runat=&...
  • 28.4k
1 vote

URL Passthrough parameters in cloudpage

Try just the CloudPagesURL function in the footer, no need to attach the JobId as it will be passed automatically with all required attributes. Put this in your unsubscribe link: <a href="%%=...
  • 11.7k
1 vote
Accepted

We want to Pass JSON Payload to JSON Code resource and need to execute Final HTTPPOST2 function on JSON to execute external API call at backend

The major flaw I see is that instead of doing a GET on your Final page, you will want to use Platform.Request.GetPostData() from SSJS to retrieve the data posted. The HTTPGet will just get the final ...
  • 28.7k
1 vote
Accepted

How to configure a cloud page to be inaccessible to public in SFMC

Seems some characters (apostrophes) were converted to HTML character coding when you copied the script (https://&#39). Here’s the correct version: <script runat="server"> Platform....
  • 11.7k
1 vote
Accepted

Save radio button value into a variable using AMPscript

@Noor In order to capture the value of the radio button into a variable use below AMPscript snippet - %%[ Set @Radio = requestparameter("option") ]%% And to display this value you can use - ...
1 vote

One Click Unsubscribe from All Subscribers

If you want your subscribers to be unsubscribed at the All Subscribers level, remove the List ID from your script: %%[ VAR @sid, @jid, @reason, @lue, @lue_prop, @lue_statusCode, @overallStatus, @...
  • 11.7k
1 vote
Accepted

AMPScript convert "feb" to 02

You can use FormatDate function in AMPscript to do that. Try this: %%[ VAR @OPT2, @FormattedDate SET @OPT2 = QueryParameter("OPT2") SET @FormattedDate = FormatDate(@OPT2, 'dd-...
  • 186
1 vote
Accepted

Not able to call the Content Block in a CloudPage using ampScirpt

Remove the spaces and try %%=TreatAsContent(ContentBlockByKey("CONTENT_BLOCK_KEY"))=%% As to why your code works in emails, good question. I've never tried this pattern with spaces, but they ...
1 vote

500 Error Cloud Page

Too long for a comment- this is not the correct answer but a "shot in the dark" / "please specify"/ "ways to improve your question to to help us help you" post. some ...
1 vote
Accepted

Ampscript : can't check dates

You need to align your data types. You're comparing dates and strings: %%[ set @localDate = SystemDateToLocalDate(Now(1)) set @localDate = dateparse('4/8/2022 3:00:00 PM') set @s01 = dateparse('2022-...
  • 28.4k
1 vote

Prevent AMPscript from executing in view online link (MC)

If I am reading this right, you want it so that if someone is reading the email in a View As Web Page environment that if they click the link to the Cloudpage that it will NOT activate the ampscript ...
  • 28.7k
1 vote
Accepted

Can I create a Cloud Page using the REST/SOAP API?

There is no API available for Cloud Pages, so you are left with only manual content creation.
  • 17.6k
1 vote

How to retrieve the triggered record information in CloudPage Marketing Cloud

Bit of an overreach here, but I can provide a pretty generic reference draft for the whole "generate .ics calendar invite" workflow. I figured it would be easier to share it whole than ...
1 vote
Accepted

Get request in SSJS on cloudpage results in 500 error

HTTP GET passes the information via Query String - like you see in your example. (the part after the ?). So what you are sending via the headers in the Http.Get function is incorrect and likely ...
  • 28.7k
1 vote
Accepted

LogUnsubEvent with AMPscript Not Logging All Items?

Your AMPscript code looks correct except the beginning where I am not sure why you are trimming JobID, ListID, and BatchID system strings when they are always going to be a numeric identifier without ...
  • 2,364
1 vote

Using Landing Page URL in Email

There is no correlation between an email and a button leading to the CloudPage inside of the email from the perspective of supermessage consumption. Here is an explanation of email supermessage ...
  • 2,364

Only top scored, non community-wiki answers of a minimum length are eligible