UI Builder - Reference fields on forms

Edvin-Karalius
Tera Guru

Hey, I've combed clean the entire internet for and answer without luck.

Issue: I have a form component on the page. When clicking the ( i ) button next to a reference field.
A new page pops up with {https:my_current_url}/sub
Clicking the reference basically navigates me to a blank page by adding /sub at the end of the url.
I can't find any event that being triggered by this and i can't find any configuration that lets you control what happens when someone clicks the reference btn.

Does anyone know how those sub pages are supposed to be controlled?
Would be awesome to have a behavior that is more like in the old platform where a context window pops up.
or at least have a modal pop up.

EdvinKaralius_0-1693080716920.pngEdvinKaralius_1-1693080750595.png

 

 

1 ACCEPTED SOLUTION

Gregory Mote
Kilo Guru

I had this similar issue where it was just opening up a new page with the /sub anytime you clicked the info icon in reference fields. The quick fix for me was just making sure the experience had a page with URL path of 'record' and that the page had the page parameters 'table' and 'sysId' along with a form component configured. Basically just copy the basic structure of a record page for another ootb experience (i.e cmdb) 

View solution in original post

4 REPLIES 4

Eswar Chappa
Mega Sage
Mega Sage

Hi @Edvin-Karalius please find the below docs which may help you for the issue you are facing with  and in below Video Observe things at 02:58 which explains above the decorative actions

 

https://www.youtube.com/watch?v=5IBrV0N6Ir8&t=216s

 

https://docs.servicenow.com/en-US/bundle/vancouver-platform-user-interface/page/administer/workspace...

 

https://xxxxxxxxx.service-now.com/now/nav/ui/classic/params/target/sys_declarative_action_assignment...

 

above is the record which control the behaviour of the issue you are facing with Just check with Versions under this "Action Assignment record" and give a try .Hopefully this may helps you!

 

EswarChappa_0-1693128609149.png

 

Thanks & Regards,

Eswar Chappa

Mark my answer correct and Helpful if this helps you ðŸ˜€

Hey! Thank you for the answer, It definitely looks like what I'm looking for. I never considered that this config might be outside UI builder. I will hopefully verify this solution sometime this week.
Any idea how to pick up that event tho from inside of ui builder/workspace?

Could it be that his "key" field is the event name?

EdvinKaralius_0-1693299577900.png

I still can't see in the configuration anywhere here where this action would append the "/sub" at the end of the URL.

Gregory Mote
Kilo Guru

I had this similar issue where it was just opening up a new page with the /sub anytime you clicked the info icon in reference fields. The quick fix for me was just making sure the experience had a page with URL path of 'record' and that the page had the page parameters 'table' and 'sysId' along with a form component configured. Basically just copy the basic structure of a record page for another ootb experience (i.e cmdb) 

Totally forgot about this post... but yeah, I eventually figured out that there is no way to control the ( i ) button properly, since it's hardcoded to navigate to a page named "record".
This is poorly documented or informed.

Simple answer: To make the ( i ) button on forms work. you need to have a url page named ".../record".