Agent Workspace>>Catalog tasks>>How to show variables on top of the task form?

Stefan K_
Tera Expert

Use case:
I would like to show the variables on top of the task form so that the fulfiller sees what exactly has been requested as they open the form. Now I have them at the very end of the form, forcing fulfiller always to scroll the form down unnecessarily.

find_real_file.png

 

Problem:
Even if I have set the variable editor on top of the form definition, it still appears only at the bottom. How to solve?

find_real_file.png



1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Stefan K. 

I just tried and added it at the end of the Form Layout and it started showing up.

Seems it is not supported or won't work when shown at the top

find_real_file.png

Output:

find_real_file.png

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

9 REPLIES 9

Thanks, wish there was a button to transfer to HI-case...

@Stefan K. 

Let me know if I have answered your question.

If so, please mark my response as correct & helpful so that this thread can be closed and others can be benefited by this.

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Stefan K. 

Possibly you can raise HI ticket with ServiceNow on this

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi @Ankur Bawiskar 

I have same issue. But the thing is I have my custom Variable Editor and configured it in my scope applicatiion for Workspace view. But that doesn't work and in any other view variable editor is working but in workspace view custom variable editor is not displaying. Could you please share your thoughts on this.

kevclark
Tera Contributor

I have a workaround for this problem where I don't bother including the Variable Editor on the form, instead I add a UI Action to the Workspace as follows:

function onClick(g_form) {
	var currentID = g_form.getUniqueValue();
	var currentTable = g_form.getTableName();
    g_modal.showFrame({
        url: '/swp/?id=variable_editor_readonly&table='+currentTable+'&sys_id=' + currentID,
        title: 'Submitted Details',
        size: 'lg',
		height: 450
    });
}

All it does is open a new g_modal window with the /swp (bare-bones) portal, calling the OOB variable_editor_readonly page, and passing it the details of the current record.  It's good enough as a workaround, but there are constraints around how big the modal can be on the screen etc.

I also played with the idea of trying to get the Variable Editor to render as a Related Item on the record itself (e.g. in a separate tab) but I couldn't find an OOTB UI Builder Component combination that would consistently render the variable editor in a way that allowed scrolling (I'm sure it's possible, but it's VERY hacky trying to get all the macroponent and root element structures to do what you want to do by hand).