Populate default values in Workspace fields?

Kenneth3
Tera Guru

Hi,

 

Is it possible to set a default value (see screenshot) for fields in a Workspace (in my case for "Agent Workspace for HR Case Management"). And if this is possible, is this wise to do, if you take into account future updates of the workspace?

 

Thanks.

3 REPLIES 3

Anurag Tripathi
Mega Patron
Mega Patron

Hi Kenneth,

 

I would advise creating an onload client script, set the view as 'workspace' so it only runs on workspace.

Then in the script you can add more conditions, if needed , like only run when field is blank, or only run for new record etc and populate the values in the script.

 

-Anurag

Hello Anurag,

 

If have created the Client Script, but it still doesn't work. Can you see what the issue can be?

 

Client Script.png

Uncheck the Global checkbox

In the view only write 'workspace'

on line 4 in your script , only pass the id as the second parameter, no third parameter, remove name from there.

Add an alert in the start of the script to test if the script is executing or not.

-Anurag