Button to lock variables on RITM form

Joshuu
Kilo Sage

Hi All,

 

We have made all the variables of a specific catalog item editable on RITM form.

Is there a way to lock all the variables through a button or any link ?

 

Please assist.

 

Thanks & Regards.

6 REPLIES 6

Hi @Muralidharan BS,

 

Could you please help me on this?

@Joshuu : I'm currently working on this to check for you, somehow g_form.setVariablesReadOnly(true) isn't post clicking on the button. 

 

But as an alternative, I have achieved it as below, 

 

Either using the UI action to set the "Lock Variables" checkbox to "True" or by disabling the UI action and having only the checkbox manually updated to "True" sets the variables to readonly using UI policy. 

 

Note: UI action - Visibility of the button is set based on the catalog item on RITM form. 

 

SujathaVM_0-1712215218060.png

 

SujathaVM_1-1712215347472.png

 

Result : 

SujathaVM_2-1712215369499.png

 

Please mark this as helpful and accept it as a solution if this resolves your query.

Thanks,

Sujatha V.M.

Please mark this as helpful and accept it as a solution if this resolves your query.
Sujatha V.M.