reCAPTCHA using "compact" size parameter

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

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

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

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

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

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.

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 :heavy_plus_sign: in the lower left on this page to add a note for our product team:

https://www.gravityforms.com/gravity-forms-roadmap/

Thank you.

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.

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

https://www.gravityforms.com/gravity-forms-roadmap/

Thank you.