g modal reference field

eyal abu hamad
Mega Sage

Hello, I created a UI action that create new contact.
I used g modal for pop up and I'm trying to add refence filed but with no luck showing values.
the UI action is in global and I tried also in customer service app.

eyalabuhamad_0-1707309029622.png

eyalabuhamad_1-1707309048345.png

as you can see that the reference filed is created but with no values.
what the problem could be ?

2 ACCEPTED SOLUTIONS

Harsh Vardhan
Giga Patron

@eyal abu hamad  Change the name attribute value.

 

From

 name: 'customer account',

 

to 

 

 name: 'account',

 

Give a try, I think it should work after this.

 

Thanks,

Harsh

View solution in original post

Hi, 

Please check the name you are giving 'customer account' ..

It may be 'customer_account' ..please check once

If type is reference: 

then name should be the  reference field on the current record being used to search

 

View solution in original post

11 REPLIES 11

Hi, 

Please check the name you are giving 'customer account' ..

It may be 'customer_account' ..please check once

If type is reference: 

then name should be the  reference field on the current record being used to search

 

Harsh Vardhan
Giga Patron

@eyal abu hamad  Change the name attribute value.

 

From

 name: 'customer account',

 

to 

 

 name: 'account',

 

Give a try, I think it should work after this.

 

Thanks,

Harsh

I have only one problem. the records that shown have limit.
THE SYSTEM ONLY SHOWS 250 RECORDS

and also seems like that there is a filter in some way or another !

Definitely that's filter restricting it , try to remove the filter for validation and see if it is showing all the data. I am just suggesting for troubleshooting perspective. 

 

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

 

Thanks,

Harsh