# Adding a javascript snippet

**URL:** <https://forum.adalo.com/t/adding-a-javascript-snippet/9654>\
**Category:** External Collections, Custom Actions & Collections\
**Created:** [February 25, 2021, 3:19pm UTC](https://forum.adalo.com/t/adding-a-javascript-snippet/9654 "2021-02-25T15:19:35Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![valentine](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/valentine/32/9607_2.png) [@valentine](https://forum.adalo.com/u/valentine)\
**Post date:** [February 25, 2021, 3:19pm UTC](https://forum.adalo.com/t/adding-a-javascript-snippet/9654/1 "2021-02-25T15:19:35Z")

</div>

Hey there! I want to add a javascript snippet to my app to use a service called [Weglot](https://weglot.com/integrations/translate-website/).  
It typically goes in the html head tag.

How might we add stuff like this in our Adalo apps?

Here’s their example of their snippet:

 ![screenshot-weglot.com-2021.02.25-07_17_38](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/8/89f3203ff8b44d9ef2e4586839df9d74ef67ff3a.jpeg)

---

<div class="post-metadata">

**Author:** ![Layasamadhi](https://avatars.discourse-cdn.com/v4/letter/l/958977/32.png) [@Layasamadhi](https://forum.adalo.com/u/Layasamadhi)\
**Post date:** [May 8, 2021, 12:36pm UTC](https://forum.adalo.com/t/adding-a-javascript-snippet/9654/2 "2021-05-08T12:36:20Z")

</div>

Hi. Have you found the response?

---

<div class="post-metadata">

**Author:** ![valentine](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/valentine/32/9607_2.png) [@valentine](https://forum.adalo.com/u/valentine)\
**Post date:** [May 10, 2021, 3:08pm UTC](https://forum.adalo.com/t/adding-a-javascript-snippet/9654/3 "2021-05-10T15:08:39Z")

</div>

Unfortunately, not yet.

---

<div class="post-metadata">

**Author:** ![theadaloguy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/theadaloguy/32/8023_2.png) [@theadaloguy](https://forum.adalo.com/u/theadaloguy)\
**Post date:** [February 17, 2022, 2:41pm UTC](https://forum.adalo.com/t/adding-a-javascript-snippet/9654/5 "2022-02-17T14:41:53Z")

</div>

Seeing as this thread got bumped, maybe this will help other people looking:

[![](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/0/09f3616f0784bfbdf34a1db366f4c2682fcb3d3b.jpeg "Adalo+Javascript - Component for writing little scripts") ](https://www.youtube.com/watch?v=FgpLr2V3f8Y)

---

<div class="post-metadata">

**Author:** ![camille](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/camille/32/18807_2.png) [@camille](https://forum.adalo.com/u/camille)\
**Post date:** [April 18, 2022, 7:46am UTC](https://forum.adalo.com/t/adding-a-javascript-snippet/9654/6 "2022-04-18T07:46:19Z")

</div>

Hello!  
Did someone try to add a Javascript snippet with the Arbitrary JS?

---

<div class="post-metadata">

**Author:** ![Meibe](https://avatars.discourse-cdn.com/v4/letter/m/67e7ee/32.png) [@Meibe](https://forum.adalo.com/u/Meibe)\
**Post date:** [April 26, 2022, 11:38am UTC](https://forum.adalo.com/t/adding-a-javascript-snippet/9654/7 "2022-04-26T11:38:54Z")

</div>

Sorry to hijack the thread. But I’m trying to install Arbitrary Javascript component. Can’t find it in marketplace and when I tried from this page: [https://adalo.pragmaflowservers.com/install-component](https://adalo.pragmaflowservers.com/install-component) it looked to work the first time, but won’t show up in adalo. If I try again it says this:

![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/f/5/f5cb547e6d121107aff297a89d16ed53acf779bf.png)

If I regenerate my token, will my other installed components stop working? Or could I try doing that and then install again?

---

<div class="post-metadata">

**Author:** ![Dilon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/dilon/32/39815_2.png) [@Dilon](https://forum.adalo.com/u/Dilon)\
**Post date:** [April 26, 2022, 12:02pm UTC](https://forum.adalo.com/t/adding-a-javascript-snippet/9654/8 "2022-04-26T12:02:22Z")

</div>

Hi @Meibe,

Did you see the component here? If it’s installed the first time and if you try to download again then you will see that error message.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/1/6/16d7e7505bf167bcb67f2adda9916176855f13d4.png)

If you see it click the three dots and add it your team.

Watch this video made by Steven :

[![](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/9/2/924c138bdf5ae312d309b6087f2f6767497f98e7.jpeg "PragmaFlow's Adalo Marketplace Reopened") ](https://www.youtube.com/watch?v=4mo_u5EdEWw)

Thank you

---

<div class="post-metadata">

**Author:** ![Meibe](https://avatars.discourse-cdn.com/v4/letter/m/67e7ee/32.png) [@Meibe](https://forum.adalo.com/u/Meibe)\
**Post date:** [April 26, 2022, 12:16pm UTC](https://forum.adalo.com/t/adding-a-javascript-snippet/9654/9 "2022-04-26T12:16:38Z")

</div>

Thank you! That was exactly what I was missing. \<3

---

<div class="post-metadata">

**Author:** ![Rios](https://avatars.discourse-cdn.com/v4/letter/r/a587f6/32.png) [@Rios](https://forum.adalo.com/u/Rios)\
**Post date:** [July 27, 2022, 8:34pm UTC](https://forum.adalo.com/t/adding-a-javascript-snippet/9654/10 "2022-07-27T20:34:15Z")

</div>

How can I make this javascript formula?

 ![javascript date](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/0/e/0ec4b83302c490d2a34b1aa6941771cd794ded7c.jpeg)

---

<div class="post-metadata">

**Author:** ![Dilon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/dilon/32/39815_2.png) [@Dilon](https://forum.adalo.com/u/Dilon)\
**Post date:** [July 28, 2022, 10:07pm UTC](https://forum.adalo.com/t/adding-a-javascript-snippet/9654/11 "2022-07-28T22:07:54Z")

</div>

Check this : [Add Months in JS.mp4 - Google Drive](https://drive.google.com/file/d/1oFvaiTq_sn6CihtK1G_CbuwkCHL8xSyW/view?usp=sharing)

> **JS**
>
> ```auto
> var date = new Date('date_input');
> var date = date.setMonth(date.getMonth() + months_input);
> var after_date = new Date(date);
> var formatted = (after_date.getMonth()+1)+'-' + after_date.getDate() + '-'+after_date.getFullYear();
> return formatted;
> 
> ```
> 
> ( In here replace the inputs with date\_input text and months\_input text! )

> **The Component Details**
>
> Instructions to download components from Pragmaflow website : [PragmaFlow's Adalo Marketplace Reopened - YouTube](https://www.youtube.com/watch?v=4mo_u5EdEWw)
> 
> Pragmaflow website : [https://adalo.pragmaflowservers.com/install-component](https://adalo.pragmaflowservers.com/install-component)
> 
> The component you need :
> 
> ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/2/7/27091a946a15503e54fd4dadb73ddccc9f6a72cf.png)

Thank you

---

<div class="post-metadata">

**Author:** ![Rios](https://avatars.discourse-cdn.com/v4/letter/r/a587f6/32.png) [@Rios](https://forum.adalo.com/u/Rios)\
**Post date:** [July 29, 2022, 9:53am UTC](https://forum.adalo.com/t/adding-a-javascript-snippet/9654/12 "2022-07-29T09:53:58Z")

</div>

Hi @Dilon , very nice to hear from you.

Thank you infinitely, thank you.

Is there a way to release the clone link for me to study better?

---

<div class="post-metadata">

**Author:** ![Dilon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/dilon/32/39815_2.png) [@Dilon](https://forum.adalo.com/u/Dilon)\
**Post date:** [July 29, 2022, 4:07pm UTC](https://forum.adalo.com/t/adding-a-javascript-snippet/9654/13 "2022-07-29T16:07:26Z")

</div>

Your welcome!

I’m unable to give the clone version of this app because this app includes some other things too! I will create another app including this thing and I will send it here!

---

<div class="post-metadata">

**Author:** ![Rios](https://avatars.discourse-cdn.com/v4/letter/r/a587f6/32.png) [@Rios](https://forum.adalo.com/u/Rios)\
**Post date:** [July 30, 2022, 2:20am UTC](https://forum.adalo.com/t/adding-a-javascript-snippet/9654/14 "2022-07-30T02:20:54Z")

</div>

@Dilon thank you very much

---

<div class="post-metadata">

**Author:** ![Dilon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/dilon/32/39815_2.png) [@Dilon](https://forum.adalo.com/u/Dilon)\
**Post date:** [August 4, 2022, 7:48pm UTC](https://forum.adalo.com/t/adding-a-javascript-snippet/9654/15 "2022-08-04T19:48:55Z")

</div>

@Rios check this : [Add months to a date](https://previewer.adalo.com/980abd7d-c89a-46ce-b984-4f5d20d52d4e)

---

<div class="post-metadata">

**Author:** ![Rios](https://avatars.discourse-cdn.com/v4/letter/r/a587f6/32.png) [@Rios](https://forum.adalo.com/u/Rios)\
**Post date:** [August 4, 2022, 8:09pm UTC](https://forum.adalo.com/t/adding-a-javascript-snippet/9654/16 "2022-08-04T20:09:11Z")

</div>

@Dilon gratitude and success
