Reference field in UI Builder

Aidan
Tera Guru

Just getting started with playing with UI builder and I'm looking to replicate some functionality I have built in the backend using a UI page.

Basically the page will contain two fields, a reference field for selecting a record from a table (the table name is customisable) and a text area which will contain a JSON formatted view of the record.

What I'm stumbling on straight away is the reference field.  There doesn't seem to be a suitable component to select which matches the behaviour of the reference field.  Can anyone suggest how to proceed?

3 REPLIES 3

Michael Fry1
Kilo Patron

Maybe use Form - Fields, choose a table and a specific view that contains the one field.

I can see how that would work, however the table will be dynamic (based on a field from another record that will be open in the workspace) and so adding a view to each table would be unworkable.

DrewW
Mega Sage
Mega Sage

The only options I could see were

1 - Wait until ServiceNow builds one and adds it.

2 - Build the component yourself.

I personally disappointed that they did not consider a reference input a priority, they are all over the system.  Every time I have found something I think would be something good to try in UI Builder I end up not being able to do it because I always need at least one reference field.  So we are not even going to consider UI builder until thats an option.