AMPscript is a scripting language that you can embed within HTML emails, text emails, landing pages, SMS messages, and push notifications from MobilePush
Questions tagged [ampscript]
122 questions
0
votes
1 answer
Smart Capture form to show choices from a DE?
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…

Mixmastermiike
- 449
- 1
- 5
- 16
0
votes
1 answer
Regex to select all spaces between a special enclosure
I am trying to write a regex for Javascript that can select all whitespaces in between AMPScript brackets, the syntax for the Lang is something like this
%%[
set @truth = 'this is amp'
IF @truth == 'this is amp' THEN
set @response = 'amp…

Aadhit Shanmugam
- 433
- 1
- 10
- 23
0
votes
1 answer
How to retrieve the triggered record information in CloudPage Marketing Cloud
I would like to have "Add to Calendar" in the Email. My idea is to write the code to Javascript to generate file.ICS in CloudPage and link it with the button. When the Email receiver clicks on the button, the file.ICS will be downloaded.
I have a…

Ben Inm
- 43
- 6
0
votes
1 answer
Calculating AMP Script Hash With C#
I am trying to calculate the AMP script hash for our site's AMP scripts so we do not have to update them manually each time something in the script changes. We do not use node.js or I would simply use the given solution on the amp-script…

Sam K
- 1
0
votes
0 answers
How to Update multiple Records in Salesforce Object using Cloud pages
I am trying to update multiple rows in Salesforce opportunities object on the same field but with different values. even thought I am able to display all those rows and created a input field for all of them, I cannot come up with the solution on how…

avinash
- 1
0
votes
1 answer
How do I pass an AMPscript static variable to Send Log
We have created a series of emails for Journey Builder. The journey is triggered by a file drop with the user data and Email_Series, which defines which initial email they should receive. A click engagement can send the user down a different path…

rathkatie
- 1
- 1
0
votes
1 answer
Ampscript in marketing cloud - If value LIKE
Similar to SQL, I was wondering if your able to add ampscript that say if a value is like a wildcard. For example, %%[IF Value LIKE "%1234" THEN]%%

JaylovesSQL
- 33
- 2
- 5
0
votes
0 answers
amp-script Uncaught TypeError: Cannot read properties of undefined (reading 'click')
why this wont work? in my case im using Amp-script, the log is success coming but does not really work
example code:

imtrying
- 91
- 1
- 11
0
votes
1 answer
How to make N/A value unclickable using Ampscripts
I have an ampscript code here that shows all the fields that has values. If there is no Value, it should show "N/A" as its value, For the fields that has values, it should be clickable then if the field doesn't have a value, it should show the "N/A"…

Miguel
- 1
0
votes
1 answer
Using Lookup function to pull in specific contentblockby ID in an email with ampscript
Can I pull in a specific contentblockbyID using the lookup function in ampscript based on the conditional IF/ELSE statement?

Jheanelle Outar
- 1
- 1
0
votes
1 answer
Receiving error 'The function expression is invalid' for InsertData ampscript function
I'm using a Marketing Cloud Cloud Page to sync contact/lead records from a Data Extension to corresponding Sales Cloud Campaigns (as campaign members). This part is working well. However I'm receiving an error when I try to write information into a…

Nathan Cavanagh
- 1
- 1
0
votes
1 answer
Why won't my SalesForce Marketing Cloud url that uses an anchor link will not go to the anchored spot on the website page
So we have a url that is pulled in dynamically from a lookup Data Extension(Data Table). It is structured like this: https://www.clientsite.com/on-boarding/#anchorlocation. However, when we test send the email and click the link we go to the page…

Paul Lemke
- 1
- 3
0
votes
1 answer
amp-state/JSON format not supported in pug js
Not able to include the below code in pugjs. I am getting errors.