# SOLVED: Apply Control action

**URL:** <https://forum.bricksbuilder.io/t/solved-apply-control-action/1673>\
**Category:** Developers\
**Created:** [January 7, 2022, 9:29pm UTC](https://forum.bricksbuilder.io/t/solved-apply-control-action/1673 "2022-01-07T21:29:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![zestjosh](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/z/34f0e0/32.png) [@zestjosh](https://forum.bricksbuilder.io/u/zestjosh)\
**Post date:** [January 7, 2022, 9:29pm UTC](https://forum.bricksbuilder.io/t/solved-apply-control-action/1673/1 "2022-01-07T21:29:30Z")

</div>

I am working on integration for Typekit inside of the Theme Styles and I have added a ‘apply’ control in order to sync with the Typekit API to get the latest fonts (instead of making an API every time you save), which are then saved in the database.

Is there a way to trigger an action with this button? Ideally, I would like to clear out the saved fonts before the page reloads.

---

<div class="post-metadata">

**Author:** ![zestjosh](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/z/34f0e0/32.png) [@zestjosh](https://forum.bricksbuilder.io/u/zestjosh)\
**Post date:** [January 13, 2022, 1:13pm UTC](https://forum.bricksbuilder.io/t/solved-apply-control-action/1673/2 "2022-01-13T13:13:24Z")

</div>

I ended up using jQuery to [accomplish this](https://github.com/zestjosh/bricks-typekit).

---

<div class="post-metadata">

**Author:** ![timmse](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/timmse/32/1192_2.png) [@timmse](https://forum.bricksbuilder.io/u/timmse)\
**Post date:** [January 13, 2022, 5:14pm UTC](https://forum.bricksbuilder.io/t/solved-apply-control-action/1673/3 "2022-01-13T17:14:29Z")

</div>

Hi Josh,

I’m thrilled you solved this by yourself! I was a bit limited the last couple of days due to an operation on my hand which made typing impossible.

Best regards,  
timmse

---

<div class="post-metadata">

**Author:** ![alucas](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/alucas/32/4948_2.png) [@alucas](https://forum.bricksbuilder.io/u/alucas)\
**Post date:** [October 27, 2022, 8:39am UTC](https://forum.bricksbuilder.io/t/solved-apply-control-action/1673/4 "2022-10-27T08:39:21Z")

</div>

Can I ask where you added the typekit project ID? I cant see it under theme settings - typography

---

<div class="post-metadata">

**Author:** ![HeroRox](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/h/8baadc/32.png) [@HeroRox](https://forum.bricksbuilder.io/u/HeroRox)\
**Post date:** [October 27, 2022, 11:17am UTC](https://forum.bricksbuilder.io/t/solved-apply-control-action/1673/5 "2022-10-27T11:17:15Z")

</div>

Gute Besserung/Get well soon 🤗

---

<div class="post-metadata">

**Author:** ![zestjosh](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/z/34f0e0/32.png) [@zestjosh](https://forum.bricksbuilder.io/u/zestjosh)\
**Post date:** [October 27, 2022, 12:23pm UTC](https://forum.bricksbuilder.io/t/solved-apply-control-action/1673/6 "2022-10-27T12:23:40Z")

</div>

Did you follow the [instructions on the GitHub page](https://github.com/absowoot/bricks-typekit)?
