Hide a field on a form

DeIvory Gordon
Tera Guru

I have a form where I would like to hide a field, but I want the field to show on the back end for the fulfiller to enter information.  I am unclear if that means the field that is hidden on the form should be visible under catalog questions on the backend and if so, I'm not sure how to do this?

 

DeIvoryGordon_0-1751481739576.png

 

4 ACCEPTED SOLUTIONS

Edward Rosario
Mega Sage
Mega Sage

If i'm understanding correctly,

  • Create a UI Policy on the form/table.

  • Condition: Use a condition like true or based on a field (e.g., Requested For is not empty).

  • Action:

    • Select the field you want to hide.

    • Set Visible = false, Mandatory = false (if applicable).

  • Roles Tab:

    • Add the fulfiller role(s) to the "Reverse if false" logic.

    • This ensures the field is hidden only for users who do not have those roles (e.g., itil, sn_hr_core.basic, etc.).

 

 

View solution in original post

PratikshaKate
Tera Contributor

@DeIvory Gordon Please find the community post link below, it will help you to achieve it.

Solved: Make hidden variables visible in back end - ServiceNow Community

 

Mark my answer helpful if it works 🙂

View solution in original post

Mohammad Danis1
Giga Guru

Hi @DeIvory Gordon ,

Utilize a combination of UI Policy and client script.
First, create a Client script on the catalog item to hide the field. Then, use a UI Policy on RITM or catalog task to make the field visible.

UI Policy Action:

MohammadDanis1_0-1751483191711.png


Client Script:

MohammadDanis1_1-1751483238394.png

 


I tried in my PDI it's working.


If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Mohammad Danish



View solution in original post

Masthan Sharif
Tera Guru

Hi @DeIvory Gordon ,

Hope you're doing well!

 

If you would like your variable to be visible & editable on the RITM but not visible on Catalog Form, you can create a Catalog UI Policy as below

Here I created a variable called 'Mobile Number' which isnt available on catalog form but available on RITM


Variable.png

catalog_item.png

RITM_1.png
 catalog_ui_policy.png

Please provide more details if your query is still not answered/addressed, thank you!

 

Best Regards,

Sharif

View solution in original post

4 REPLIES 4

Edward Rosario
Mega Sage
Mega Sage

If i'm understanding correctly,

  • Create a UI Policy on the form/table.

  • Condition: Use a condition like true or based on a field (e.g., Requested For is not empty).

  • Action:

    • Select the field you want to hide.

    • Set Visible = false, Mandatory = false (if applicable).

  • Roles Tab:

    • Add the fulfiller role(s) to the "Reverse if false" logic.

    • This ensures the field is hidden only for users who do not have those roles (e.g., itil, sn_hr_core.basic, etc.).

 

 

PratikshaKate
Tera Contributor

@DeIvory Gordon Please find the community post link below, it will help you to achieve it.

Solved: Make hidden variables visible in back end - ServiceNow Community

 

Mark my answer helpful if it works 🙂

Mohammad Danis1
Giga Guru

Hi @DeIvory Gordon ,

Utilize a combination of UI Policy and client script.
First, create a Client script on the catalog item to hide the field. Then, use a UI Policy on RITM or catalog task to make the field visible.

UI Policy Action:

MohammadDanis1_0-1751483191711.png


Client Script:

MohammadDanis1_1-1751483238394.png

 


I tried in my PDI it's working.


If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Mohammad Danish



Masthan Sharif
Tera Guru

Hi @DeIvory Gordon ,

Hope you're doing well!

 

If you would like your variable to be visible & editable on the RITM but not visible on Catalog Form, you can create a Catalog UI Policy as below

Here I created a variable called 'Mobile Number' which isnt available on catalog form but available on RITM


Variable.png

catalog_item.png

RITM_1.png
 catalog_ui_policy.png

Please provide more details if your query is still not answered/addressed, thank you!

 

Best Regards,

Sharif