How to make variables non editable?

ishaanvohra
Kilo Contributor

Hello,

I have created a catalog item using scripted rest api and add variables to catalog items using scripted rest api.I have provided the default values to these variables, so that anyone who wants to order that catalog item can go through the info stored in those variables.These variables look like this in service catalog when I open my catalog item to order it.

                                                Screen Shot 2017-11-28 at 2.58.58 PM.png

But what is happening now that values of these variables are editable, as anyone can edit these values and can change the info before ordering for the item.I don't want that.So is there any way to make these variables non-editable while displaying in service catalog,so that values of these variable will remain read-only and no one can edit it except system admin?

Please suggest me the way to do that.

11 REPLIES 11

Hi Ashustosh,


Their field values i.e. default value changes as per catalog items.But their question_text abd display names are same.


nityabans27
Mega Guru

Hi @ishaanvohra ,
You can use Catalog UI Policies to make them read-only. 
This will make your variables non-editable.

Please accept my solution and mark it as helpful if you find it useful.

Thanks and regards
Nitya Bansal