hello everyone, I'm trying to run a JavaScript function when click to the button as screenshot ,
But nothing happens when I click to button .
Best answer by ernie_hayter
View originalhello everyone, I'm trying to run a JavaScript function when click to the button as screenshot ,
But nothing happens when I click to button .
Best answer by ernie_hayter
View originalHi @Akhanjer ,
You will need to switch off Prevent XSS if you want to execute script - that setting will sanitise any JS script transferred to the Data Label.
HTH,
Ernie
Happy it works!
Just as a word of warning - you will need to use Prevent XSS setting on fields that load values that external parties can alter to prevent injection of potentially harmful JavaScript. Only use JS injection on fields that users can't change.
Cheers,
Ernie
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.