Time Sensitive Choices

Read the Walkthrough

Code

Filename: gw-time-sensitive-choices-usage.php

<?php
/**
 * Gravity Wiz // Gravity Forms // Time Sensitive Choices
 * https://gravitywiz.com/time-sensitive-choices-with-gravity-forms/
 */

// Time Sensitive Choices
new GW_Time_Sensitive_Choices( array(
	'form_id'   => 964,
	'field_ids' => array( 10, 12, 13 ),
	'time_mod'  => '+1 hours',
) );

// Link a Date field to the Choice field when using GF Limit Choices and Field Groups.
new GW_Time_Sensitive_Choices( array(
	'form_id'       => 964,
	'field_ids'     => array( 10, 12, 13 ),
	'time_mod'      => '+1 hours',
	'date_field_id' => 1,
) );

Leave a Reply

Your email address will not be published. Required fields are marked *

  • Trouble installing this snippet? See our troubleshooting tips.
  • Need to include code? Create a gist and link to it in your comment.
  • Reporting a bug? Provide a URL where this issue can be recreated.

By commenting, I understand that I may receive emails related to Gravity Wiz and can unsubscribe at any time.