Greetings,
I have a field on my custom recipe entity configured for direct answers. I can’t get the “View Details” CTA to appear.
I see that the standard direct answers card pulls from relatedItem.data.website
.
viewDetailsText: 'View Details', // Text below the direct answer
viewDetailsLink: relatedItem.data.website, // Link for the “view details” text
viewDetailsEventOptions: this.addDefaultEventOptions({
ctaLabel: 'VIEW_DETAILS'
However, my custom entity doesn’t have a field called website
. I does have a field called landingPageUrl
I followed the steps outlined in this unit, forked a direct answers card and tried it with
viewDetailsLink: relatedItem.data.landingPageUrl
and
viewDetailsLink: relatedItem.data.profile.landingPageUrl
but neither seem to work.
Could you let me know what I might be doing wrong?
Thanks,
Max