# reCAPTCHA using "compact" size parameter

**URL:** <https://community.gravityforms.com/t/recaptcha-using-compact-size-parameter/6598>\
**Category:** Feature Requests\
**Tags:** recaptcha, gform\_recaptcha\_init\_script, css\
**Created:** [October 23, 2020, 4:40pm UTC](https://community.gravityforms.com/t/recaptcha-using-compact-size-parameter/6598 "2020-10-23T16:40:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![nerdworker](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/nerdworker/32/2164_2.png) [@nerdworker](https://community.gravityforms.com/u/nerdworker)\
**Post date:** [October 23, 2020, 4:40pm UTC](https://community.gravityforms.com/t/recaptcha-using-compact-size-parameter/6598/1 "2020-10-23T16:40:33Z")

</div>

I need to use reCAPTCHA with the compact size parameter (size=compact) in the src URL, but I cannot find a way to accomplish it.

It would need to be an option on the field or even a filter on the src so it could be done programmically.

If anyone has accomplished this in a way I haven’t found, please let me know.

Thank you

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [October 23, 2020, 5:09pm UTC](https://community.gravityforms.com/t/recaptcha-using-compact-size-parameter/6598/2 "2020-10-23T17:09:02Z")

</div>

Hi Stefanie, there is a filter for initializing the reCAPTCHA:

> **[gform\_recaptcha\_init\_script - Gravity Forms Documentation](https://docs.gravityforms.com/gform_recaptcha_init_script/)**
>
> Use this filter to change the look and feel of the reCAPTCHA field.

Based on the Google documentation, you should be able to pass in the `data-size` compact:

> **[reCAPTCHA v2  |  Google Developers](https://developers.google.com/recaptcha/docs/display)**

Another option would be to transform the reCAPTCHA with CSS as described here:

> **[How to resize the Google noCAPTCHA reCAPTCHA | The Geek Goddess](https://geekgoddess.com/how-to-resize-the-google-nocaptcha-recaptcha/)**
>
> I recently released my first WordPress plugin, InfuCaptcha, which inserts the new Google "noCAPTCHA" reCAPTCHA into Infusionsoft web forms. Because of this, I've spent a bit of time wit

Let us know if you need other options. Thank you.

---

<div class="post-metadata">

**Author:** ![nerdworker](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/nerdworker/32/2164_2.png) [@nerdworker](https://community.gravityforms.com/u/nerdworker)\
**Post date:** [October 23, 2020, 5:58pm UTC](https://community.gravityforms.com/t/recaptcha-using-compact-size-parameter/6598/3 "2020-10-23T17:58:03Z")

</div>

I didn’t think that filter was still usable, since it says it’s deprecated and no longer available.

Since the size option is available from Google, it would be nice to have it easily available for your users.

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [October 23, 2020, 8:01pm UTC](https://community.gravityforms.com/t/recaptcha-using-compact-size-parameter/6598/4 "2020-10-23T20:01:54Z")

</div>

I’m sorry - you are correct about the filter being deprecated. I had forgotten about that. If you would like to suggest that feature/filter for inclusion in the future, I recommend adding that to our product roadmap. Click the blue ➕ in the lower left on this page to add a note for our product team:

[https://www.gravityforms.com/gravity-forms-roadmap/](https://www.gravityforms.com/gravity-forms-roadmap/)

Thank you.

---

<div class="post-metadata">

**Author:** ![user5aa6ab50864a11.2](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/user5aa6ab50864a11.2/32/2204_2.png) [@user5aa6ab50864a11.2](https://community.gravityforms.com/u/user5aa6ab50864a11.2)\
**Post date:** [November 2, 2020, 8:54pm UTC](https://community.gravityforms.com/t/recaptcha-using-compact-size-parameter/6598/5 "2020-11-02T20:54:42Z")

</div>

I as looking for a very similar thing. It’s surprising it’s not a built-in option since it’s provided by the Google reCaptcha API. I agree with OP would definitely like to see this feature in the future.

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [November 4, 2020, 5:53am UTC](https://community.gravityforms.com/t/recaptcha-using-compact-size-parameter/6598/6 "2020-11-04T05:53:09Z")

</div>

Hello IQ Computing. If you would like to vote for this feature, please head over to our product roadmap. Click the blue ➕ in the lower left on this page to add a note for our product team:

[https://www.gravityforms.com/gravity-forms-roadmap/](https://www.gravityforms.com/gravity-forms-roadmap/)

Thank you.

---

<div class="post-metadata">

**Author:** ![richardw8k](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/richardw8k/32/2354_2.png) [@richardw8k](https://community.gravityforms.com/u/richardw8k)\
**Post date:** [July 29, 2021, 1:58pm UTC](https://community.gravityforms.com/t/recaptcha-using-compact-size-parameter/6598/7 "2021-07-29T13:58:17Z")

</div>


