# \#rgpost

**URL:** https://community.gravityforms.com/tag/rgpost/794.md

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

---

## [Form Pre-submission Filter broken with PHP 8.0](https://community.gravityforms.com/t/form-pre-submission-filter-broken-with-php-8-0/14485)

<div class="topic-metadata">

**Author:** [@mediaryte](https://community.gravityforms.com/u/mediaryte)\
**Replies:** 2\
**Last updated:** [February 18, 2023, 10:19am UTC](https://community.gravityforms.com/t/form-pre-submission-filter-broken-with-php-8-0/14485 "2023-02-18T10:19:21Z")

</div>

We’ve been using the following script successfully for quite sometime, but with the change to PHP 8.0, we are running into an issue without an error to identify a fix. On submission, the form notification is supposed to…

---

## [How to see if checkbox has been checked in PHP](https://community.gravityforms.com/t/how-to-see-if-checkbox-has-been-checked-in-php/13761)

<div class="topic-metadata">

**Author:** [@lewisr1990](https://community.gravityforms.com/u/lewisr1990)\
**Replies:** 2\
**Last updated:** [October 31, 2022, 7:55pm UTC](https://community.gravityforms.com/t/how-to-see-if-checkbox-has-been-checked-in-php/13761 "2022-10-31T19:55:07Z")

</div>

Hey I’m writing some code to calculate some fields and then submit them back into the website at the end using the gform\_pre\_submission action. I have got the number input fields fine using rgpost( ‘input\_1’) etc but I a…

---

## [Send notification if validation fails \[RESOLVED\]](https://community.gravityforms.com/t/send-notification-if-validation-fails-resolved/13247)

<div class="topic-metadata">

**Author:** [@user5a096b2969b522.0](https://community.gravityforms.com/u/user5a096b2969b522.0)\
**Replies:** 6\
**Last updated:** [August 23, 2022, 10:01pm UTC](https://community.gravityforms.com/t/send-notification-if-validation-fails-resolved/13247 "2022-08-23T22:01:11Z")

</div>

Is there a way to send a notification despite the fact that validation fails. I have written this custom validation which checks if a gform field is less than another one, if it is, it sets $result\[‘is\_valid’\] = false; …

---

## [Populate field based on the label from another field \[RESOLVED\]](https://community.gravityforms.com/t/populate-field-based-on-the-label-from-another-field-resolved/13093)

<div class="topic-metadata">

**Author:** [@user620cbe86a7f98947](https://community.gravityforms.com/u/user620cbe86a7f98947)\
**Replies:** 4\
**Last updated:** [July 25, 2022, 1:32pm UTC](https://community.gravityforms.com/t/populate-field-based-on-the-label-from-another-field-resolved/13093 "2022-07-25T13:32:50Z")

</div>

I read the documentation on how to populate a field using the value from another field. // Change 1 on the following to your form id number. add\_action( 'gform\_pre\_submission\_1', 'pre\_submission\_handler' ); function pre…

---

## [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…

---

## [Get value of dropdown](https://community.gravityforms.com/t/get-value-of-dropdown/10762)

<div class="topic-metadata">

**Author:** [@user5f1294743be84687](https://community.gravityforms.com/u/user5f1294743be84687)\
**Replies:** 2\
**Last updated:** [September 24, 2021, 11:52pm UTC](https://community.gravityforms.com/t/get-value-of-dropdown/10762 "2021-09-24T23:52:18Z")

</div>

I am trying to check that the user has made a selection from the dropdowns. They are required to make a selection from 3 of the 5 dropdowns (counting dropdowns successfully.) The function below does what I need EXCEPT …

---

## [Rgpost on Advanced Fields](https://community.gravityforms.com/t/rgpost-on-advanced-fields/9371)

<div class="topic-metadata">

**Author:** [@user60abf0c76a3d8336](https://community.gravityforms.com/u/user60abf0c76a3d8336)\
**Replies:** 1\
**Last updated:** [May 25, 2021, 5:33pm UTC](https://community.gravityforms.com/t/rgpost-on-advanced-fields/9371 "2021-05-25T17:33:24Z")

</div>

Just found this out but didnt see any docs documenting it so I figured I could write it here. When using the Address Advanced Field, the input name has a trailing dot. Something like “input\_1.1” However, when referenci…

---

## [Update form field dynamically through PHP (gform\_pre\_submission)](https://community.gravityforms.com/t/update-form-field-dynamically-through-php-gform-pre-submission/4911)

<div class="topic-metadata">

**Author:** [@frankmaven](https://community.gravityforms.com/u/frankmaven)\
**Replies:** 3\
**Last updated:** [May 28, 2020, 9:57pm UTC](https://community.gravityforms.com/t/update-form-field-dynamically-through-php-gform-pre-submission/4911 "2020-05-28T21:57:41Z")

</div>

I was looking at https://docs.gravityforms.com/gform\_pre\_submission/ as a way to update a field value based on a previous field’s value. Here’s the situation: I have a field named ‘territory’ which has 4 options (displ…
