Additional comments Post button is not visible on sc_task form when state is ON-HOLD.

suru2
Tera Contributor

Hii All,

 

In SC_TASK when we change the state to ON-HOLD at that time Additional comments/Work Note POST button is not visible. so can anyone help me on that.

 

Thanks,

5 REPLIES 5

Brian Lancaster
Tera Sage

Is additional comment or work notes mandatory when changing the state to on hold? This would be the only reason I can think of that would make the post button disappear. As you want the user to save or update the record so on hold as well as the mandatory comments/work notes are filled in.

If you were able to fill them in and click post then tried to save the records it would error out saying comments or work notes are mandatory.

yes @Brian Lancaster ,Additional comments are mandatory when the state is ON-HOLD,
but here the requirement is we should see the Post button when we add the Additional comments on ON-HOLD State.

Are you using a UI Policy to make additional comments mandatory? If so remove that UI Policy and replace it with a client script. Code below. This will make comments mandatory only when the state changes to on hold (you will loose the post button on this one for the reason I state above) but any other time you can into a on hold catalog task you will have the post button.

function onChange(control, oldValue, newValue, isLoading, isTemplate) {
    if (isLoading || newValue === '') {
        return;
    }
	//Type appropriate comment here, and begin script below
	if (newValue == 8){// This is from incident as we use the out of the box pending on catalog task. Please verify the value of your state.
		g_form.setMandatory('comments', true);
	}
}

Hello Brian! 

I use client script in setting the additional comments to mandatory. It worked before but upon checking now it hides the post button..