Logan Little
Logan Little

Reputation: 1

Close Field Box with CSS - Gravity Forms

I have a gravity form to solicit donations. Using conditional logic, when users select the "other" dollar amount to donate, a user-defined product field appears. I'd like a close box to appear on that field...ideally, in CSS. Any ideas on how to incorporate this into a gravity form?

Upvotes: 0

Views: 36

Answers (1)

Suha Karalar
Suha Karalar

Reputation: 31

You can add this jquery function to your theme's functions.php file or your theme's page template. Change #field_1_3 with your selector's id.

<script type="text/javascript"> 
    jQuery(document).ready(function () {
      jQuery('#field_1_3').hide(); 
    });
</script>

Upvotes: 0

Related Questions