I want to hide items as read-only in the flow designer.(script)

hurm
Tera Contributor

find_real_file.png

 

[reciever_name] I want to make this item read-only and I want to know how to hide it

please help me.

5 REPLIES 5

Harish KM
Kilo Patron
Kilo Patron

Hi flow designer is server side script. I dont think setReadonly works here.

Regards
Harish

Ethan Davies
Mega Sage
Mega Sage

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!

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)

Aman Kumar S
Kilo Patron

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);

}

Best Regards
Aman Kumar