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

Variables is automatically readonly on task

juveriya307
Giga Contributor

I have created variables in record producer which is hidden on catalog item view using UI policy. When i submit the form, I want these variables editable on task form. I have written a client script on catalog item too but it doesnt work.

function onLoad() {
   //Type appropriate comment here, and begin script below
   //g_form.setVariablesReadOnly(false);
    g_form.setReadOnly('change_resource',false);
    g_form.setReadOnly('sprint_window',false);
    g_form.setReadOnly('root_cause',false);
     
}
2 REPLIES 2

Zach Koch
Giga Sage

In your record producer UI policy, make sure that under the When to Apply, you check the Applies on the Target Record. The same would apply to your Client Script on your record producer.

ZachKoch_0-1718287564986.png

 

If this information helped resolve your issue, please remember to mark response correct and thumbs up to help future community members on this information, thanks!

KiranmaiP
Tera Contributor

Hi @juveriya307 

KiranmaiP_0-1718289558330.png

Please check the above screesnhot, you can try mentioning the Active, Hidden, Read only to true
or
Use the method of creating roles who can read / write

KiranmaiP_1-1718289668682.png

Hope it helps.

Regards,
Kiranmai.