Need to add two drop downs to the state field for a sn_audit_engagement Table.

Sai74
Tera Contributor

Need to add a drop downs to the state field for a sn_audit_engagement Table. But this two dropdown in a state field need to be visible only in Audit workspace but not on the native side. 

 

Is there a way we can hide the choice of a field on the native side and make it visible on the Audit workspace.

1 REPLY 1

Ashutosh C J
Tera Guru

Hi @Sai74 
One possible method would be by using the URL
Analyze the URLs in the native view and that in the workspace and then create the client script like this
Worked for me !!!

AshutoshCJ_0-1714660288234.png

 

 

function onLoad() {
    var url = top.location.href;
    if (url.includes('now/cwf'))
        g_form.addOption('state', 'test1', 'test1');
}