I created the view and added the client script still its not changing assigned to to owner .

mishrarakes
Tera Contributor
1)Create one view in the SCTASK Form for My Request.
2)Only for this view "Assigned to" Label  will change as "Owner" in the SCTASK form.
3)In the catalog Item create two new variables
                                                            1)Food Preferences(Select box type—->two options-->Veg, non-veg
                                                             2)Food list(select box type--->If food preferences select Veg, then Food List option should be milk,Oats,rice
                                                                                                                    ---> If food preferences select non-Veg, then Food List option should be egg,chicken,mutton.
 
 
4)Whenever the SCTASK will be resolved then one notification will trigger the request for person.(Instead of global one, Create one custom notification and one  header and footer).
 
 
here I am attaching the ss of script.
5 REPLIES 5

sunil maddheshi
Tera Guru

@mishrarakes 

What are you getting in info message? Can you try with below script:

function onLoad() {  
    var viewName = g_form.getViewName();  
    g_form.addInfoMessage("current view: " + viewName);  
    if (viewName == 'My Request') {  
        // if(g_form.getView() == "My Request View"){  
        alert("inside if");
        g_form.setLabelOf('assigned_to', 'Owner');  
    }  
}

Please mark correct/helpful if this helps you