The CreatorCon Call for Content is officially open! Get started here.

Alert box on background script

niitnishant
Tera Contributor

Hi Friends,

When a user clicks on the 'Run Script' button on the background script form, i need an alert saying "you are running a BG script in production. Are you sure you want to continue?"

Anybody has experience on it?

Thanks,

Nishant

6 REPLIES 6

raves12
Kilo Sage

I don't think that can be customized. You can use fix scripts.



Fix scripts


Fix scripts let you create stand alone script the same as background scripts do but you can save them as records so you can re-use them at a later date. Tbh i never use background scripts but i use fix scripts a lot.



You could deactivate the background scripts module and put an onLoad client script on the fix script form alerting your users that they are applying scripts to prod.


HI Dave,



It won't even need to put the alert box Runnning through fix scripts first asks the users if they want to continue but if customized alert box is needed that will work as per your suggestion


Dubz
Mega Sage

Only your admins should be able to access background scripts, you shouldn't need to remind your admins that they're running scripts on prod!