# \#form\_id

**URL:** https://community.gravityforms.com/tag/1812-tag/1812.md

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

---

## [Form ID seems missing from set user role code](https://community.gravityforms.com/t/form-id-seems-missing-from-set-user-role-code/15016)

<div class="topic-metadata">

**Author:** [@BionicSquid](https://community.gravityforms.com/u/BionicSquid)\
**Replies:** 2\
**Last updated:** [April 27, 2023, 1:45pm UTC](https://community.gravityforms.com/t/form-id-seems-missing-from-set-user-role-code/15016 "2023-04-27T13:45:50Z")

</div>

Hi. I’ve looked at User Registration - allow user to select role \[RESOLVED\] for a similar need and landed on https://docs.gravityforms.com/gform\_user\_registered/. I see that we can specify fields, for example in the one …

---

## [Column 'form\_id' cannot be null](https://community.gravityforms.com/t/column-form-id-cannot-be-null/12780)

<div class="topic-metadata">

**Author:** [@zhihenglin1998](https://community.gravityforms.com/u/zhihenglin1998)\
**Replies:** 2\
**Last updated:** [June 9, 2022, 8:15am UTC](https://community.gravityforms.com/t/column-form-id-cannot-be-null/12780 "2022-06-09T08:15:03Z")

</div>

When trying to submit on this form, the following error have popped up. Shouldn’t the form\_id be grabbed automatically by Gravity Forms? Other forms we have does not have this issue. WordPress database error: \[Column ‘…
