Variable Read only for Catalog Task

Arun87
Giga Contributor

Hi Team,

 We have created one form and it contain 10 variables. 5 variables are filled at the time of creating the request. Once it is approved by the line manager it will create  the catalog task1, in this task group owner need to fill the 3 variables. In this task 5 variables are read only. Once this task it is closed it will create other task2 requesting the group owner to fill other 2 variable. In this task2 previously filled 3 variables should be in read only. once task2 is closed it will create task 3 and all the variables should be in readonly. Please help me how to achieve this.

1 ACCEPTED SOLUTION

You can call me at 9885189192

View solution in original post

42 REPLIES 42

So it entered if condition now?

Then try like this

g_form.setMandatory('assigned_to',false);
g_form.setReadOnly('assigned_to', true);

Mark the comment(s) as helpful if they are helping to solve your problem.

Arun87
Giga Contributor

it is not working 

Hello Arun

When something is not working, you need to provide details. Just saying not working is not going to help

1. Did it enter if condition or not?

2. is assigned_to a mandatory field

And check if there are any onload client scripts running.

Provide answers to all questions to understand the issue better.

Arun87
Giga Contributor

Hi,

It is entering into alert condition but readonly and Mandatory option is not working.

And we don't have any scripts for those fields.

Kindly share the latest script of yours.

Also share the screenshot of the form.