I want to hide items as read-only in the flow designer.(script)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2022 07:50 PM
[reciever_name] I want to make this item read-only and I want to know how to hide it
please help me.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2022 07:53 PM
Hi flow designer is server side script. I dont think setReadonly works here.
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2022 08:45 PM
Hi Zhian,
You can only set fields to a read-only state on the Client Side not the Server Side, Flow Designer runs on the Server Side.
If you want to set a filed to read-only you will need to create a Client Script / UI Policy / Data Policy on the target table and set your field or variable to read-only.
Hope this helps.
Please mark this answer as correct or helpful if it solved your issue, thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2022 07:54 PM
thank you for your answer.
I could set it with UI policy and client, but it affects the whole table, so I want to set it with flow designer (for generated records)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2022 09:30 PM
You can also have certain condition in your UI policy or Client script to check if the field is getting read only for specific catalog item.
Check out Item(cat_item) field on RITM.
you can have condition like on a client script on RITM table or you can also use UI policy with similar condition.
if(g_form.getValue("cat_item", "your_sys_id_of_catalog_item")){
g_form.setReadOnly("description", true);
}
Aman Kumar