no preview available for a custom reference field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-04-2023 07:06 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-04-2023 08:04 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-06-2023 12:20 AM
Hi Sagar,
There are values for reference value in referenced table.
Thanks&Regards,
Abhisek Chattaraj.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-16-2024 03:14 PM - edited ‎05-16-2024 03:17 PM
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.