java script | Community
Skip to main content
Level 3
November 8, 2024
Solved

java script

  • November 8, 2024
  • 1 reply
  • 466 views

Hi All,

There is one piece of code which encrypts the URL and that is in JS. Basically want to include that in PB and ultimately include that PB in HTML so that it creates encrypted link for all the HTML templates. How we can achieve this.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Amine_Abedour

Hi @at7140,

 

You can start by creating your PB and putting into it your JS code that do the encrypting like this: 

In the delivery, load the PB like this :

Select the PB created :

 

You should have someting like this:

 

 

You can now use your funtion as pleased il your HTML :

 

Result  :

 

 Br

 

  

1 reply

Amine_Abedour
Community Advisor
Amine_AbedourCommunity AdvisorAccepted solution
Community Advisor
November 8, 2024

Hi @at7140,

 

You can start by creating your PB and putting into it your JS code that do the encrypting like this: 

In the delivery, load the PB like this :

Select the PB created :

 

You should have someting like this:

 

 

You can now use your funtion as pleased il your HTML :

 

Result  :

 

 Br

 

  

Amine ABEDOUR