- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2020 04:58 AM
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.
Solved! Go to Solution.
- Labels:
-
Instance Configuration

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2020 09:55 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2020 12:25 AM
Hello Arun,
As per the screenshot, it looks like your script is not active. Kindly make the active checkbox true and check once with below code.
function onLoad(){
var shortDescription = g_form.getValue('short_description');
alert("on load");
if(shortDescription == 'Tech Evaluation and Testing'){
alert("Entered if");
g_form.setReadOnly('assigned_to', true);
}
}
Mark the comment as correct answer and helpful if it helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2020 03:52 AM
Hi,
It is not working as expected.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2020 03:58 AM
When you say it is not working as expected, can you explain.
Did you get the alerts? If yes which alert came and which did not as there are 2 alerts mentioned in the script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2020 04:14 AM
Hi,
On load alert i received it and entered if alert is didn't received it.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-03-2020 04:21 AM
Okay.
Can you check now and share the output of alert.
function onLoad(){
var shortDescription = g_form.getValue('short_description');
alert(shortDescription);
if(shortDescription == 'Tech Evaluation and Testing'){
alert("Entered if");
g_form.setReadOnly('assigned_to', true);
}
}
Also When is the short description filled? is it filled when form is loaded?