Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Attachment icon disappearing after error throwed

Saranya K
Tera Contributor

Hi all,

 

Attachment is mandatory while moving CTASK to close state , before updating the record attachment icon is there 

 

SaranyaK_0-1749023161785.png

 

After updating the record without  attachment error will throw and attachment symbol is getting disappeared. 

SaranyaK_1-1749023756278.png

 

i want to show attachment icon after form aborted also.

 

Thanks

 

 

10 REPLIES 10

Arun_Manoj
Mega Sage

Hi @Saranya K ,

 

close that error message appear in the header ,then attachment icon visible or not

Hi @Arun_Manoj ,

 

After closing also not visible after refreshing the form only visible .

 

But i need to show icon without refresh

search for any onLoad client scripts maybe

EDIT: in the business rule where have you set the error message "Kindly attach evidence of successful completion of the CTASK (email comms/ Screenshots" add therreload() - you can try in the beginning or in the end, it could help. As the form would be already reloaded and the error message displayed afterwards...

_____
This reply is 100 % GlideFather and 0 % AI

* location.reload();

_____
This reply is 100 % GlideFather and 0 % AI

Hi @GlideFather ,

 

Thanks there is one onload CS which disable the attachment when change in closed state.