no preview available for a custom reference field

abhisek
Tera Contributor

I have created a custom reference field xyz and have written a on change client script to populate the xyz field value as per the existing reference field caller on the incident form.

Value of xyz field is getting populated properly as per caller field but preview is not available for the xyz field.

Can anyone please help me out.

3 REPLIES 3

Sagar Pagar
Tera Patron

Hi @abhisek ,

 

Make sure that there should be record for reference value in referenced table. It may be appear as empty while auto-populating.

Would it be possible to share your scripts here?

 

Also, take a look at this supportive KB:

Reference field is not showing the expected display value when selected or it appears blank 

Reference fields show preview icon even when the field has an empty value 

 

 

Thanks,

Sagar Pagar

The world works with ServiceNow

Hi Sagar,

 

There are values for reference value in referenced table.

 

Thanks&Regards,

Abhisek Chattaraj.

Hi @Abhisek,

Are you still experiencing this issue? Does this happen to be with a read-only reference field? If so, I had this same issue and the following thread had a resolve:
https://www.servicenow.com/community/devops-forum/make-a-field-read-only-but-keep-the-preview-button...

Adding the attribute readonly_clickthrough=true to the field if it is read only may resolve this for you.