The CreatorCon Call for Content is officially open! Get started here.

how to make Widget's code read-only or private

hamid laghari1
Tera Contributor

i have created an widget. i want to make it protected as no one will be able to edit it's code accept me is there any way for doing this

3 REPLIES 3

nameisnani
Mega Sage

HI @hamid laghari1 

 

Yes, there is a way to protect a widget in ServiceNow so that only you can edit its code.

To do this, you need to set the "Security" property of the widget to "Private". This will prevent other users from being able to view or edit the widget's code.

Here are the steps on how to do this:

  1. Go to the Service Portal > Widgets page.
  2. Click on the name of the widget that you want to protect.
  3. On the widget's form, click on the "Security" tab.
  4. In the "Security" section, select the "Private" option.
  5. Click on the "Update" button.

Once you have set the "Security" property to "Private", only you will be able to view or edit the widget's code.

Here are some additional things to keep in mind:

  • If you set the "Security" property to "Private", you will also need to make sure that the widget is not published. If the widget is published, then other users will still be able to see and use the widget, even though they cannot edit its code.
  • If you want to allow other users to view or edit the widget's code, but you want to prevent them from making changes to the code, you can set the "Security" property to "Review". This will allow other users to view the code, but they will not be able to make any changes to it.

hamid laghari1
Tera Contributor

@nameisnani 

i don't find security section in widget's form