- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-06-2015 05:15 PM
Hello - This may be a simple question but not finding answer on wiki - is there an easy way to make a text field Read Only on the form without a UI policy? so just add a default value to text field and set read only on the variable.
I am using an order guide to support requesting a server stack - each checked item = per environment configuration/qty so I want to set value for the environment to readonly because it is passed and kicks off an automation....prefer it to be visible but doesn't matter - that's more for my sanity to test. They all share the same variable set for header and item specs but environment value would be fixed and specific to each item. Would like to just set readonly on the attribute rather than create 9 UI policies. Can you apply a UI policy at the order guide level so it applies to all items in the order? Going live in a couple of weeks!
Thanks for your time!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-06-2015 07:42 PM
Hi Alicia,
I don't think that's possible in service catalog variables. You could accomplish that in table fields but then you cannot even set the value of the field through a script, so it works in the form of a constant.
The best way is to do a UI policy and 9 UI policies are not that much anyway
You could also set a catalog variable as readOnly through script with the following line:
g_form.setReadOnly('catalog_variable_name',true);
Thanks,
Berny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-06-2015 07:42 PM
Hi Alicia,
I don't think that's possible in service catalog variables. You could accomplish that in table fields but then you cannot even set the value of the field through a script, so it works in the form of a constant.
The best way is to do a UI policy and 9 UI policies are not that much anyway
You could also set a catalog variable as readOnly through script with the following line:
g_form.setReadOnly('catalog_variable_name',true);
Thanks,
Berny

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-07-2015 09:15 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-10-2015 09:56 PM
Hi Alicia, this is not possible for Service Catalog variables. I would recommend you to create a onLoad UI policy, without condition and make that particular field 'read-only'. Please let me know if any queries you have.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-16-2015 10:31 PM
Hi aliciamiller, do you feel that we can close this thread by marking one of the responses as correct?
Thanks,
Berny