Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hirejordansmith/1fc8d42415895c3db4e9881944c6e33a to your computer and use it in GitHub Desktop.
Save hirejordansmith/1fc8d42415895c3db4e9881944c6e33a to your computer and use it in GitHub Desktop.
How to setup time-based conditional logic for Gravity Forms
<?php
add_filter( 'gform_field_value_time', function() {
return date( 'G.i', current_time( 'timestamp' ) );
} );
@jasimp
Copy link

jasimp commented Jun 13, 2020

how to set a filed or submit button for a specific time to enable and specific time to disable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment