# Role-based Form Field Missing on Edit

**URL:** <https://community.gravityforms.com/t/role-based-form-field-missing-on-edit/17601>\
**Category:** Get Help\
**Tags:** gravity-view, conditional-logic, gravityview, gp-nested-forms\
**Created:** [June 3, 2024, 4:40pm UTC](https://community.gravityforms.com/t/role-based-form-field-missing-on-edit/17601 "2024-06-03T16:40:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ld02digital](https://avatars.discourse-cdn.com/v4/letter/l/67e7ee/32.png) [@ld02digital](https://community.gravityforms.com/u/ld02digital)\
**Post date:** [June 3, 2024, 4:40pm UTC](https://community.gravityforms.com/t/role-based-form-field-missing-on-edit/17601/1 "2024-06-03T16:40:16Z")

</div>

Hi!

We have a form with a field that is only visible if the current user’s role is an administrator. This is done by having a hidden field that displays the current user’s roles which is done by allowing the field to be populated dynamically with a parameter. When I edit the entry through the backend, I can see both fields but when I edit it through Gravity View, I cannot see the field that is visible only to admins.

Does anyone know of a way around this? We need to update the field before we can approve the entries and the user submitting the form cannot see the field for privacy reasons.

---

<div class="post-metadata">

**Author:** ![rafaehlers](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/rafaehlers/32/2441_2.png) [@rafaehlers](https://community.gravityforms.com/u/rafaehlers)\
**Post date:** [June 3, 2024, 5:39pm UTC](https://community.gravityforms.com/t/role-based-form-field-missing-on-edit/17601/2 "2024-06-03T17:39:08Z")

</div>

Hi Shannon,

Please check this article: [Hidden fields and field visibility on Edit Entry - GravityKit Support, Knowledge Base, How-To & Docs](https://docs.gravitykit.com/article/678-edit-entry-hidden-fields-field-visibility)

Let me know if you have further questions.

---

<div class="post-metadata">

**Author:** ![ld02digital](https://avatars.discourse-cdn.com/v4/letter/l/67e7ee/32.png) [@ld02digital](https://community.gravityforms.com/u/ld02digital)\
**Post date:** [June 3, 2024, 6:26pm UTC](https://community.gravityforms.com/t/role-based-form-field-missing-on-edit/17601/3 "2024-06-03T18:26:36Z")

</div>

Hi Rafael,

Thank you for the assistance. I changed my roles field to a Hidden field type and added the code and it worked. However, it doesn’t seem to extend to nested form entries. If the Hidden roles field is in a nested form, then when I edit a nested form entry through my view, the conditional field doesn’t display. Do you know if this can be done?

---

<div class="post-metadata">

**Author:** ![rafaehlers](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/rafaehlers/32/2441_2.png) [@rafaehlers](https://community.gravityforms.com/u/rafaehlers)\
**Post date:** [June 3, 2024, 6:48pm UTC](https://community.gravityforms.com/t/role-based-form-field-missing-on-edit/17601/4 "2024-06-03T18:48:35Z")

</div>

Hi Shannon,

The Nested Forms perk works differently inside the Edit Entry page of GravityView. Try contacting Gravity Wiz support staff; they might help: [Support | Gravity Wiz](https://gravitywiz.com/support/)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/gravityforms1/original/2X/f/fef63f0599c45e0218c30d9f5d7ca8bff9b00189.png) [@system](https://community.gravityforms.com/u/system)\
**Post date:** [July 3, 2024, 6:49pm UTC](https://community.gravityforms.com/t/role-based-form-field-missing-on-edit/17601/5 "2024-07-03T18:49:33Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
