# \#time-field

**URL:** https://community.gravityforms.com/tag/time-field/1157.md

[Latest](https://community.gravityforms.com/latest.md) · [Categories](https://community.gravityforms.com/categories.md) · [Tags](https://community.gravityforms.com/tags.md)

---

## [Entering time as a duration](https://community.gravityforms.com/t/entering-time-as-a-duration/12043)

<div class="topic-metadata">

**Author:** [@Operator95](https://community.gravityforms.com/u/Operator95)\
**Replies:** 10\
**Last updated:** [March 19, 2022, 3:17am UTC](https://community.gravityforms.com/t/entering-time-as-a-duration/12043 "2022-03-19T03:17:19Z")

</div>

Curious how others have solved this. I need users to enter time as a duration. They are volunteers entering their volunteer hours. I don’t care when they start and finish, just need them to be able to enter how long th…

---

## [Rgpost not getting field value \[RESOLVED\]](https://community.gravityforms.com/t/rgpost-not-getting-field-value-resolved/12175)

<div class="topic-metadata">

**Author:** [@zhihenglin1998](https://community.gravityforms.com/u/zhihenglin1998)\
**Replies:** 4\
**Last updated:** [March 14, 2022, 11:40pm UTC](https://community.gravityforms.com/t/rgpost-not-getting-field-value-resolved/12175 "2022-03-14T23:40:44Z")

</div>

add\_filter( 'gform\_pre\_submission\_18', 'time\_calculation' ); function time\_calculation($form){ $getvalue = rgpost("input\_18\_5\_1"); if (!empty($getvalue)){ echo $getvalue;} else echo ("no value"); } I am trying to d…

---

## [How to customize date/time fields in gravity form?](https://community.gravityforms.com/t/how-to-customize-date-time-fields-in-gravity-form/11419)

<div class="topic-metadata">

**Author:** [@user611c7c135e0ce407](https://community.gravityforms.com/u/user611c7c135e0ce407)\
**Replies:** 1\
**Last updated:** [December 15, 2021, 2:27pm UTC](https://community.gravityforms.com/t/how-to-customize-date-time-fields-in-gravity-form/11419 "2021-12-15T14:27:34Z")

</div>

I want to add a single date / time field in the gravity form. Also, I want to add a restriction on this date / time field, to not allow certain values within the time frame. Is this feature possible in gravity forms?

---

## [Time limits using an advanced Time field \[RESOLVED\]](https://community.gravityforms.com/t/time-limits-using-an-advanced-time-field-resolved/8450)

<div class="topic-metadata">

**Author:** [@user5e5f0c2b1d27a637](https://community.gravityforms.com/u/user5e5f0c2b1d27a637)\
**Replies:** 4\
**Last updated:** [March 29, 2021, 4:56pm UTC](https://community.gravityforms.com/t/time-limits-using-an-advanced-time-field-resolved/8450 "2021-03-29T16:56:08Z")

</div>

I’m wanting the time fields I’m creating to be limited to a certain time range (e.g. 9am-2pm), but I do not have a field in this form for a date picker, so I cannot use conditional logic from that. Is there a way to hav…
