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.

Configurable Workspace Magnifying Glass not setting values

Aaron Duncan
Mega Sage

I built my first workspace for a custom app and while a user can click on a field such as assigned to, and the list drops below the field (screenshot 1), when a user clicks the magnifying glass, the popup shows up with the correct data to show, but when selecting a value, the value is not set back on the field. Any idea of what might cause this?

 

AaronDuncan_0-1727788725854.png

AaronDuncan_1-1727788746346.png

 

2 REPLIES 2

Diogo Ramos
Giga Sage
Giga Sage

Hello, recently a colleague faced this type of issue, see if the below helps you from support: Selected reference values are not getting populated on the reference field when the value is selecte...

Resolution

Follow the below steps for the issue to be fixed:

  1. Open the page variant that is affected in the UI builder
  2. Go to settings
  3. Click the dropdown under 'Actions' & select 'Page definition' - this will open the sys_ux_macroponent record
  4. Scroll down to the composition section
  5.  Within this section, scroll down till you find the elementId: "modalContainerViewport"
  6.  Scroll down till you find operationName: RECORD#CLOSE_MODAL
  7.  Go to extensionPoints method
  8.  Here, replace the empty value ("") of "controllerElementId" with "record" & save the form.
  9. Close the workspace & test the issue, notice the issue is fixed & value gets populated.

     


    DiogoRamos_2-1727946509916.png



That's really odd, but going to that page

 now/nav/ui/classic/params/target/sys_ux_macroponent.do%3Fsys_id%3D82faaf2502981e50de19bf7212fc3212

and there's no reference to modal or any variation of it in the Composition field.