I created the view and added the client script still its not changing assigned to to owner .
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2025 11:31 PM
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.
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2025 03:36 AM
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