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.

Document Template - Hide Generate Button

JoefromTheCloud
Tera Contributor

I have a use case for HTML Template where a customer would like to hide the generate button until the Document Tasks are completed and shows up only after the Document has been signed.

JoefromTheCloud_0-1764090936398.png

 

Does anyone have any ideas?

1 REPLY 1

Wessel van Enk
Tera Guru
Tera Guru

Hi @JoefromTheCloud,

You need to update the condition of the UI Action. Below is an example:

WesselvanEnk_1-1764144587966.png



So, you can add a script include into the conditions and in that script include you can check if the Document Tasks are completed. Once done you can return 'true' and then the condition will accept it and show the button.